You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The rndm native AI script function is used to generate a random float value in the specified range [min; max). The max value is exclusive, meaning it is not included in the possible generated values.
min(float): The lower bound of the possible returned values.
max(float): The upper bound of the possible returned values.
Return value
random_value(float): A random value between min and max.
Example
(val)rndm(0, 1);
This example code generates a random float value between 0 (inclusive) and 1 (exclusive), and returns the value as a float.
Note that the max value is not included in the range of possible generated values. In the example above, the function could return any value in the range [0;1[.