Advertisement
Guest User

Untitled

a guest
Jun 27th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. import random
  2. number = random.uniform(0.07, 0.1)
  3. down = random.uniform(0.4, 0.7)
  4. print(number)
  5. print(down)
  6.  
  7. from random import randint
  8. opt = 500
  9. while opt > 0: # В каждый из моментов времени
  10. if 40 <= randint(1, 100) <= 70: # с вероятностью 40-70%
  11. opt -= (opt * (randint(7, 10) / 100)) # уменьшается на 7-10%
  12. continue
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement