If a faucet's flow is random between 1 and 3 gallons a minute, why are both obvious guesses for the fill time wrong?
Short drills on what this video just taught. Write the code, run the checks, and reveal the answer only if you are stuck.
random.random() returns a float u with . The faucet's flow rate must instead be spread evenly over gallons per minute, so a draw of 0 gives 1 and a draw near 1 gives nearly 3. Define rate_from(u) that returns the flow rate for the draw u.