Skip to content
C

Dice Roll Coverage

Mediumpython

Use the random module to simulate rolling a six-sided die 1000 times, and check whether every face (1 through 6) showed up at least once.

What the problem means: with 1000 rolls of a fair die, it's overwhelmingly likely every face appears at least once — this checks that your simulation covers the full range correctly, without needing to match an exact random sequence (which would be a fragile, un-testable way to grade genuine randomness).

Approach: use random.randint(1, 6) inside a loop to build a list of 1000 rolls, then check that every number from 1 to 6 appears somewhere in that list.

Input: No input.

Output: One line: True if every face 1-6 appeared at least once among the 1000 rolls, otherwise False.

Input (stdin)

Output

Run your code to see output here...