I want to create a variable called Random that is constantly changing every time I call on it.
I want this bit of code:
Random = randint(0, 10)
print Random
print Random
print Random
not to give me something like:
6
6
6
but rather something like:
3
6
1
Without having to reassign Random before I use it every time. Also I used Random inside several different functions. So how do I allow it to be used everywhere in the code without having to reassign it as a random variable every single time?
Sorry if this is a stupid question but I'm very new at this and I have no idea what I'm doing. Please keep the explanations simple.
edit: here's some more code:
def something1(Random, useless, whatever)
etc...
def something2(Random, useless, whatever)
etc...
...
main():
for index in range(800):
Random = randint(1, 10)
something1(Random, useless, whatever)
Random = randing(1, 10)
something2(Random, useless, whatever)
and this goes on for a while.