Skip to content

Instantly share code, notes, and snippets.

View BertinAm's full-sized avatar
🏠
Working from home

Unix IO BertinAm

🏠
Working from home
View GitHub Profile
import random
rng = random.Random()
number = rng.randrange(1, 1000) # Get random number between [1 and 1000).
guesses = 0
message = ""
while True:
guess = int(input(message + "\nGuess my number between 1 and 1000: "))
guesses += 1