Returns a random integer from specified range.
Use this to generate a random integer.
menu: veeos ==> Math ==> randomInt
library: mathLib
o_randomInt(0,34) is equally likely to return any of the 35 integers in the inclusive range of 0 to 34
This is similar to the built-in random() function, but the built-in returns real64's, this returns integers.
In looking at this function, several approaches were tried, as noted in evalRandomInt.vee. Note that it isn't hard to end up with biased result, and that some approaches are slower than others. Also, as it turns out, the "best" solution in this case is to read the Help and note that the built-in random() function uses a non-inclusive range [A,B) so can be used almost directly.
VEE 7.0+, all platforms