Implemented random number generation

(Oppa Gallagher Style)