RanDev

Description

Returns the next number in a pseudorandom sequence.

Type

NUMERIC

Arguments

Type

Meaning

1

NUMERIC

a number which is ignored except that the units are taken as the units to be returned.

Evaluation

Returns the next number in the pseudo-random series, given a seed.

Comments

This function should not be called within a user-defined function which has no arguments, if that user-defined function might be called multiple times within a single block (rule). This is because functions with no arguments are actually evaluated only once per rule and return this same result on each function call during the execution of that block.

This is not a very good random number generator, but is implemented in this way for historical reasons. If ResetRanDev() has not been called before this function, then the results are unpredictable.

 
RanDev(1)
 
0.34105