Pipes are considered the safest and most efficient equipment for distributing liquids or natural gas, but the possibility of failure with economic, safety, and ecological damage impacts is still possible. The corrosion phenomenon is an anomaly that often occurs in pipelines that can reduce pipe thickness and implicate poor management of gas flow. Risk-Based Inspection methodology may be used to manage the corrosion risk by focusing inspection efforts on the process equipment with the highest risk. One way to analyze the corrosion risk that occurs in gas pipelines is by Monte Carlo simulation. Monte Carlo simulation is a simulation technique that constructs probability distributions of the possible outcomes from the limited samples using a randomization process. Graphical User Interface (GUI) is created to model Monte Carlo simulation by using the python programming language. The manual calculation on Minitab software is used as a comparison to validate the model.