Created random number generator