[Solved] How to print the random.randrange number that was selected? [closed]


It depends where you want to print it… In addition i hope that you initialized health variable to something and then use -= to decrease it… If you just want to print it to console you have to

print health #python 2.x

or

print(health) #python 3.x

of course you have to store the random number was selected

rand = Random.randrange(0,5)
print rand

3

solved How to print the random.randrange number that was selected? [closed]