def time_until_next_event(prng, net_rate):
    """Compute the time at which the next event is due to occur.
    All events are modeled as Poisson processes with exponentially
    distributed waiting times.  Units of time are chosen such that the
    average time it takes for a given cell to divide is 1.
    """

    return prng.standard_exponential() / net_rate