Equinox Online Help - Language Reference - A to Z
RndStart |
|
---|---|
Applies to | |
Syntax | RndStart [SeedExpression] [, BaseOffsetExpression] |
Action | [Statement] Changes the values returned by subsequent calls to the Rnd function. |
Scope | Usable anywhere |
Notes | This statement uses SeedExpression as an optional number generate a new start point for following values returned by Rnd. BaseOffsetExpression is an optional number that is added to each following value returned by Rnd. |
Category | Maths |
See Also | Abs, Acos, Asin, Atan, Cos, Deg, Int, Log, Max, Min, MinMax, Rad, Rnd, Round, Sign, Sin, Sqrt, Tan |
Example | Each time you run Equinox and execute these lines, they will print the same number. This is useful if you want repeatable random numbers, for testing for example: Print rnd However these will always print different numbers: RndStart Timer This example generates a series of numbers between 65 and 90 (the ASCII values for A-Z): number vCount |