break random number stuff into its own module