Machine Learning, Data Science, Markov Chains, Monte Carlo.
step. We count the number of times the drunkard lies in the circle with the variable points_in. Finally, the program prints the value (4*points_in/N) after N steps. import random, math x, y = -1, -1 delta = 0.1 # length of step taken points_in = 0 N = 1000000 for step in range(N): theta =