randomInt(min,max)

Returns a random integer from specified range.


Syntax

o_randomInt(min,max)
return: min <= random integer <= max

Usage

Use this to generate a random integer.

Location

menu: veeos ==> Math ==> randomInt

library: mathLib

Example

o_randomInt(0,34) is equally likely to return any of the 35 integers in the inclusive range of 0 to 34

Notes

This is similar to the built-in random() function, but the built-in returns real64's, this returns integers.

Reference

Dependencies

Supported On

VEE 7.0+, all platforms

See Also

randomReorder


© 2015. All Rights Reserved.  Stan Bischof (stan@worldbadminton.com). Last updated 08 November 2015 10:03. © 2015.