Generation

generate functionMon, 08 May 2023

To model how long Amir will wait for a back-up using a continuous uniform distribution, save his lowest possible wait time as min_time and his longest possible wait time as max_time. Remember that back-ups happen every 30 minutes.

def wait_time(min_time, max_time): return np.random.uniform(min_time, max_time) wait_time(1, 30)

Want to kickstart your project?Use the new AI Studio to create your code