random number generator section added