Replacing Math.random() with something a little more random.