Added psuedo random number generator with replayability.