Iam new to anylogic. I want to generate random true false results to control parameter in Select Output.
I used this if else conditions in my source
if(randomTrue(0.25)){
if(randomTrue(0.5)){
agent.isOnlineRezerve = true;
}else {
agent.isOnlineRezerve = false;
}
}else{
agent.isOnlineRezerve = false;
}
My condition of source output is
agent.isOnlineRezerve
Every time I run it it gives me 128 out of 1000 true and the rest false
I want to get a number other than 128 each time, but I couldn't do it. I would be glad if you help.