Oil is the primary fuel required to support human life in many aspects, including propelling the economy. Many oil exploration activities involve pipelines as a place to drain or move fluid. Therefore, the reliability of the piping system is needed in every petroleum industry to prevent failures in the piping system. Failure in the piping system occurs due to the interaction between the metal pipe and its environment, which will result in a corrosion. The occurrence of corrosion that can cause failures in the piping system can be anticipated by an optimal inspection system, which can prevent corrosion and increase the effectiveness of inspections. Risk-Based Inspection (RBI) is one of the methods to determine the inspection system optimally by using a risk management approach. In this approach, Monte Carlo simulations can be used to approach the actual risk value in field conditions with a small number of samples. Monte Carlo simulation method is a form of probabilistic simulation where a solution to a problem is given based on a randomization process. The essential element needed in a Monte Carlo simulation is a random number generator (RNG). In this study, the reliability calculation is done using the Monte Carlo simulation using the help of RStudio software, which will be compared to the results of calculations using the Graphical User Interface (GUI) based on the R programming language. The final purpose of this research is to create a Graphical User Interface (GUI) based on the R programming language that is targeted to be able to facilitate users in calculating risk by using Monte Carlo simulations on the Risk-Based Inspection (RBI) method.