On 03/01/12 01:52, shane wrote:
I was wondering is there a way to have a variable generate a random
integer each time the variable is called.
You can call a function to assign a value to a variable,
but you can't "call" a variable (unless its assigned to
a function but that's another subject en
Dave Angel wrote:
Variables with integer values are not 'called." They also don't change
values unless you change it. So if you've got a loop, and you want them
to have different values each time, then give them different values each
time, by calling a function that does return a different v
On 01/02/2012 08:52 PM, shane wrote:
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 mat
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 selecti