Created utility  class for generating random numbers