I was wondering is there a way to have a variable generate a random integer each time the variable is called.
Ive tried random.randint(a,  b) and the range one to.
It selects a random number and assigns it to the variable
this part of the program would be math equations
with random number selections
x=ran  y=ran z=x*y
x * y = z
 s=input=('x*y= ')
   if s != z
There are many things I need to solve its my first program.
But I just need help on assigning a random number and looping through to get diff values for x and y

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to