Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import numpy as np
- guess = np.random.choice(2, 1000000, .5)
- flip_outcome = np.random.choice(2, 1000000, .5)
- result = (guess * flip_outcome).mean()
- Rounded to two decimal places, result = 0.25
Add Comment
Please, Sign In to add comment