add random number generator for times and durations