Added code for Random number generator