A helper library for using Math.random()