de-classify randomizer

just make the random numbers into a couple of functions rather than a
singleton class.