Why did 1,000 simulated rolls say a 1-in-7,776 event never happens, and what does random.seed do to the dice?
Short drills on what this video just taught. Write the code, run the checks, and reveal the answer only if you are stuck.
Seed the generator with random.seed(0) and roll ten dice with the given rollDie() into the list first. Then seed it with 0 again and roll ten more into second. Assign both lists.
import random
def rollDie():
"""returns a random int between 1 and 6"""
return random.choice([1, 2, 3, 4, 5, 6])