These tests are a little weird. It's not actually random, but we're doing all this pseudorandom math to make it feel random...

I also don't fully understand the control flow of the original test, so I'm just going to have to trust you that your refactor makes sense.