Made a couple more updates to the random number generator and other things.