LISTSERV Maestro 11.1-3 Help Table Of Contents

Calculation Formulas

Back to Calculation Formulas Overview
Back to Functions Overview


Function "Random"

Random[(threshold)]

Function: Returns a pseudo-random number in a range specified by the argument.
No argument given: The range is from 0 to the largest possible Number value.
One argument given: The range is from 0 to the value of the given argument minus one (i.e. "0" to "arg-1").

Return-Type: Number

Arguments: (The argument is optional)
threshold - Type Number: The threshold value for the random number. The random number will range from "0" to "threshold - 1".

Examples:
Random
Random(6)
Random(&MAX_RANDOM;)
Random(&VALUE; - 17 * &MAX;)

© 2002-2023 L-Soft Sweden AB. All rights reserved.