RSeed function

Official Content
This documentation is valid for:

To set the seed used by the Random function in order to generate the random numbers.

Syntax

&Res=RSeed(Seed)

Type Returned:
Numeric

Where:
Seed
   The seed parameter is of the N(10.0) type.

Description

It can be set n times, and will affect the Randoms executed later. The value returned is not determined and it is not useful.

Example

&var=RSeed(5)
Do While <Condition>
     …
     &SeedNro = Random( ) 
     ...
EndDo

It generates n pseudo-random numbers. Every time the application is run, it generates the same sequence of numbers because the seed always remains the same.

Scope

Objects Procedure object, Transaction object, Web Panel object
Languages .NET, Java, Ruby, Visual FoxPro
   

See also

Random function