Random
Random

Returns a random number within the specified range.

RandomNumber = mySpecial.Random( Min_Value, Range_Value )
RandomNumber = mySpecial.Random( Range_Value )
RandomNumber = mySpecial.Random( )

Return value
A random value within the specified range.

Parameters
  • Min_Value
    The minimum value that can be returned (inclusive)
  • Range_Value
    The range of values that can be returned. i.e. The highest value can be calculated as the minimum value + the range (not inclusive)
Comments

Random will call SetRandomRange with the values specified, then call GetNext. If no values are specified, the last set range will be used.
This function will change the default range if parimiters are given.

See also
Special:GetNext



JAM © 2005 no one in partiular
Project started by David Evans in 2005