Implement random_color(rng) in colors.py: three random integers from 0 to 255 returned as a tuple (immutable, so it is safe as a constant-like value). It accepts an optional random.Random so tests can seed it. The upper bound comes from constants.py.
Phase: MIL-003
Implement `random_color(rng)` in `colors.py`: three random integers from 0 to 255 returned as a tuple (immutable, so it is safe as a constant-like value). It accepts an optional `random.Random` so tests can seed it. The upper bound comes from `constants.py`.
Phase: MIL-003
Tirsvad
added this to the Milestone 003: Shapes and Random Color milestone 2026-10-07 18:01:57 +02:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Implement
random_color(rng)incolors.py: three random integers from 0 to 255 returned as a tuple (immutable, so it is safe as a constant-like value). It accepts an optionalrandom.Randomso tests can seed it. The upper bound comes fromconstants.py.Phase: MIL-003