Guest User

Untitled

a guest
Jan 24th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. import numpy as np
  2.  
  3. guess = np.random.choice(2, 1000000, .5)
  4. flip_outcome = np.random.choice(2, 1000000, .5)
  5.  
  6. result = (guess * flip_outcome).mean()
  7.  
  8. Rounded to two decimal places, result = 0.25
Add Comment
Please, Sign In to add comment