Hey everyone, I have an ASRS vehicle in my system and I want to introduce uncertainty in its behaviour,so I want to set its lift speed and extension speed as a normal distribution. I tried with custom code on entry but it doesn't work. Any help on how I can set the speed with a normal distribution will be very helpful
/**Custom Code*/
Object current = ownerobject(c);
// Define the mean and standard deviation for the normal distribution
var mu = 10.0; // Adjust this value to set the mean speed
var sigma = 0.05; // Adjust this value to set the standard deviation
// Generate a random speed value from a normal distribution
var randomSpeed = normal(mu, sigma);
// Set the AS/RS object's "Lift Speed" label to the generated value
setlabelnum(current, "Lift Speed", randomSpeed);