I want to use a function to assign different normal distributions for the waiting time in a queue based on a agent parameter.
Fuction body:
if (agent.tar == "A03")
return normal(4.70,16.38);
if (agent.tar == "A02")
return normal(4.70,16.38);
else normal(4.8,16.9);
Does anyone know what "Type" i have to use to return it to the queue?
Many thanks for your help in advance.
Brgds Kev
The pictures above shows my approach. I just need to know what type should be returned.
The "delay time" field wants to know a double
so your function MUST return a "double" value.
Just choose that in the "Returns value" dropdown for "Type", it is the 2nd entry from the top.