Added random number generator