Added own random number generator