The randominteger( function generates a random integer between the starting and ending values.


This function has two parameters:

startnumber – the minimum random value to be returned by this function.

endnumber – the maximum random value to be returned by this function.


This function generates a random integer value that is greater than or equal to the starting number and less than or equal to the ending number. For example, this formula generates a random number between 100 and 200 (inclusive, 200 is a possible value that may be generated).


If you didn’t want 200 to ever be returned, adjust the formula like this:


If you leave out the starting value, it is assumed to be 1. This example generates a number from 1 to 10.


Error Messages

randominteger( function start and end values must be within 32 bits (2**32)–1. – This function can only generate random values with in a 32 bit range. If you specify an ending value that is more than 4,294,967,295 greater than the starting value, this error will occur.


10.0UpdatedCarried over from Panorama 6.0, but no longer generates a floating point number that is then converted to an integer, instead, random integers are created directly. Also, the starting value can now be ommitted, in which case it is assumed to default to 1.