Run
method and measures also don't have to change from the earlier example. However, we add a new function newCustomer
which generates a random customer by sampling from the interarrival time and service time distributions.config
object. This config
object has to be initialized inside the run function to ensure the samplers are initialized with the input values.NumCustomers
customers and adds them to the simulator's queue.jq
, we can look at the wait time measures:-dash.simulator.random.seed
flag.$(date +%s)
or $RANDOM
.