Fixed the limits for the random time interval