i am a beginner, i tried to have python generate a random integer from 0 to 10
my code looks like this:
import random
number = random.randint( 0,10)
print number
i am using python 2.7
it gives AttributeError: 'module' object has no attribute 'randint'
please help, thank you very much.
my code looks like this:
import random
number = random.randint( 0,10)
print number
i am using python 2.7
it gives AttributeError: 'module' object has no attribute 'randint'
please help, thank you very much.
Comment