KiXtart Language Reference (SRnd)
[ KiXtart VBScript Batch AutoIt HTA PowerShell Windows Command Lines Other Command Line Utilities ]SRnd (Function)
Available from version 3.51 through the latest release.
Syntax
SRnd (<seed value>)
Description
Sets the starting point for generating a series of pseudo-random integers
Remarks
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.
Also see:
Abs CDbl Cint Val CStr Round Int Fix Rnd DecToHex FormatNumber ASC
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.
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!

iTripoli prides itself on providing top notch customer service
Find answers or open a ticket to ask directly, when opening a ticket we will suggest relavant articles to help you get answers as quickly and accurately as possible. Visit our support center now!



