Guest User

Untitled

a guest
Mar 20th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. #Gamblers Ruin
  2.  
  3. R = [100] * 1
  4. for i in R:
  5. itera = 0
  6. while i >= 0 and itera <= 1000:
  7. itera += 1
  8. W = random.choice([-1,1])
  9. i += W
  10. plt.plot(i)
  11. plt.show()
Add Comment
Please, Sign In to add comment