Added a basic random number generator for stats