Skip to content

Instantly share code, notes, and snippets.

@ChillMouse
Last active August 27, 2020 15:08
Show Gist options
  • Save ChillMouse/367c1c0cb7584fae8a5eeaffaced31d3 to your computer and use it in GitHub Desktop.
Save ChillMouse/367c1c0cb7584fae8a5eeaffaced31d3 to your computer and use it in GitHub Desktop.
traning
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