Navigation: Functions/instructions > Functions
Function that returns a random integer between 0 and MAX_INT16 (0x7fff).
Syntax
i16 random ()
Result
Returns the random number
Validity
Rule, Task
Note
Example usage:
midVal = midVal + error * random()/max_int16
F7 for caret browsing Hold ALT and press letter