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.
(random_value: f)rndm(min: f, max: f) // rndm_ff_f
(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[.