Last active
August 27, 2020 15:08
-
-
Save ChillMouse/367c1c0cb7584fae8a5eeaffaced31d3 to your computer and use it in GitHub Desktop.
traning
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
block: int = random.randint(0,9999) | |
cash: int = random.randint(0,9999) | |
timer: int = 0 | |
while 1 > 0: | |
while cash != block: | |
cash = random.randint(0,9999) | |
timer += 1 | |
else: | |
print("Попыток: ",timer) | |
print("Блокчейн: ",block,". Хэш: ", cash) | |
print("Вероятность: ",1/timer) | |
print() | |
block = random.randint(0, 9999) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment