Event time sampling function
s(U,S) = T, where S(T) = U
Maps a uniform random number and a fitted time-to-event distribution to a sampled time to the next event for one simulated patient. The sampled time is the value at which the survival function equals the random number, so repeated draws reproduce the fitted distribution. The simulation clock then advances to the earliest scheduled event.
Exponential event time by inverse transform
T_j = -log(U) / lambda_j
Weibull event time by inverse transform
T = beta * (-log(U))^(1 / gamma)
Little's law check on a simulated queue
L = lambda * W