Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View meub's full-sized avatar

Alex Meub meub

View GitHub Profile
@meub
meub / pi-monte-carlo.py
Created March 14, 2019 18:29 — forked from louismullie/pi-monte-carlo.py
Monte Carlo Estimation of PI in Python
import random as r
import math as m
# Number of darts that land inside.
inside = 0
# Total number of darts to throw.
total = 1000
# Iterate for the number of darts.
for i in range(0, total):