Export (0) Print
Expand All
0 out of 3 rated this helpful - Rate this topic

RANDOM Function (Integer)

Microsoft Dynamics Nav 2009

Returns a pseudo-random number.


Number := RANDOM(MaxNumber)

Parameters

MaxNumber

Type: Integer

The largest acceptable number. In effect, you are setting a range from one (1) to the number you specify with the MaxNumber parameter.

Type: Integer

A pseudo-random number between one (1) and the number you entered for MaxNumber.

If MaxNumber is negative it acts as a positive.

If MaxNumber is zero this function always returns 1.

A number is always chosen from the same set of numbers. Use RANDOMIZE Function (Integer) to generate a new set of numbers.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.