Welcome, guest | Sign In | My Account | Store | Cart
"""Generate a set of random numbers based on the number requested."""
import random

try:
    numbers = input("How many numbers do you want generated? ")
    for num in range(int(random.random() + 1), int(numbers) + 1):
        print(random.randint(num, num * 10))
except ValueError:
    print("Input is invalid!")

History