 Typically, events are scheduled dynamically as the simulation proceeds.For example, in the bank example noted above, the event CUSTOMER-ARRIVAL at time t would, if the CUSTOMER_QUEUE was empty and TELLER was idle, include the creation of the subsequent event CUSTOMER-DEPARTURE to occur at time t+s, where s is a number generated from the SERVICE-TIME distribution.The simulation needs to generate random variables of various kinds, depending on the system model.