Skip to content

Instantly share code, notes, and snippets.

Avatar

Alex Meub meub

View GitHub Profile
@meub
meub / pi-monte-carlo.py
Created Mar 14, 2019 — forked from louismullie/pi-monte-carlo.py
Monte Carlo Estimation of PI in Python
View pi-monte-carlo.py
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):
You can’t perform that action at this time.