Click here to return to the KiXtart HelpDesk main page...

KiXtart 2001 Manual


Action: The SRND function sets the starting point for generating a series of pseudorandom integers. To reinitialize the generator, use 1 as the seed argument. Any other value for seed sets the generator to a random starting point. RND retrieves the pseudorandom numbers that are generated. Calling RND before any call to SRND generates the same sequence as calling SRND with seed passed as 1.
Syntax: SRND (seed)
Parameters: Seed

Numeric value to seed the generator with

Returns: Nothing.
See Also: Rnd( )
Example: $rc=SRND(@MSECS)