[Tutor] Random number selection

shane chayek777 at gmail.com
Tue Jan 3 02:52:57 CET 2012


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



More information about the Tutor mailing list