def compute_delay(interval):
    return int(random.expovariate(1/interval)) + 1

# BEGIN TAXI_PROCESS
Compute action delay using exponential distribution
dataset/ETHPy150Open fluentpython/example-code/16-coroutine/taxi_sim0.py/compute_delay