KiXtart Language Reference (SRnd)
Windows Command Lines
Other Command Line Utilities
Available from version 3.51 through the latest release.
SRnd (<seed value>)
Sets the starting point for generating a series of pseudo-random integers
To restart the number list, specify the same value as the seed value with the SRnd function. By default, the seed value used is “1”. Therefore, calling Rnd, before any call to SRnd, generates the same sequence as calling SRnd with seed passed as “1”.
One good way to generate a “random” seed value is to use the current number of milliseconds as a seed value. The @MSECS macro returns the current number of milliseconds as a three-digit number that changes every millisecond.
Portions taken from, The Start to Finish Guide to Scripting with KiXtart. Used by permission.
Have a correction, addition or suggestion on this? Please let us know!
Last Edited: 6/1/2004. This page has been viewed 3099 times. Unless otherwise specified, all information is (C) 2004-2007 iTripoli, Inc. All Rights Reserved.
Abs CDbl Cint Val CStr Round Int Fix Rnd DecToHex FormatNumber ASC
Note: you can view this information right within ASE by right clicking any keyword and selecting "Help..."
Now In Print! 496 Pages of detail covering each and every command. Includes common problems, command alternatives and real-world examples throughout.
Click here for special 35% discount!