i have an assignment where i need a bunch of random numbers up to 1000 so i figured id try to write a quick program. Ive been working on projects all day and an new to programming so bear with me if this is trivial. why is this an infinite loop?
Code:
import random times = raw_input("how many numbers to generate: ") count = 0 while count <= times: number = random.randrange(999)+1 print number count = count+1
Comment