mercredi 6 octobre 2021

how do I make so when i press s the random number becomes the seed

import random
import keyboard

while True:
    try:
        if keyboard.is_pressed('s'):
            random.seed(2)
        break
    except:
        break

for _ in range (1):
    print(random.randrange(0, 100))



Aucun commentaire:

Enregistrer un commentaire