Do Now 3.01
Type the following code into the editor and run the program.
import random
random.randint(0, 3)
random.randint(0, 3)
print(random.randint(0, 3))
print(random.randint(0, 3))
print(random.randint(0, 3))
What does randint do?
What do the values 0
and 3
do? Try changing those numbers, rerun the program, and write down what changed.
What is the difference between random.randint(0,3)
and print(random.randint(0,3))
?