RndPerN Random Type (unique uniform distribution)

Action

Declares a random variable of type RndPerN. With each access, such a variable contains a unique random integer value that is generated following a uniform distribution. The parameter of the RndPerN function specifies the maximum value of the uniform distribution. The minimum random value is 1. Within these boundaries (and including the boundaries) all integer values have the same probability of being selected. No value in the specified interval is selected twice. If all values have been selected, the maximum value+1 is returned. You can compare the RndPerN function with a drawing of lots where no lot is put back.

Syntax

RndPerN( in nMax : number ): number;

Return value

number

Parameter Description
nMax

Maximum value

Condition: nMax <= 500000

Sample scripts

OraSample.bdf