Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- number = random.uniform(0.07, 0.1)
- down = random.uniform(0.4, 0.7)
- print(number)
- print(down)
- from random import randint
- opt = 500
- while opt > 0: # В каждый из моментов времени
- if 40 <= randint(1, 100) <= 70: # с вероятностью 40-70%
- opt -= (opt * (randint(7, 10) / 100)) # уменьшается на 7-10%
- continue
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement