|
Formula 1.0.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Objecthirondelle.formula.function.builtin.RandomNumber
public final class RandomNumber
rand(x): a pseudo-random number in a certain range.
Constructor Summary | |
---|---|
RandomNumber()
|
Method Summary | |
---|---|
Decimal |
calculate(Decimal... aArgs)
Takes either 0 or 2 arguments. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RandomNumber()
Method Detail |
---|
public Decimal calculate(Decimal... aArgs)
For 0 arguments, returns a random number >= 0 and < 1
For 2 arguments, the first argument is the lower limit (inclusive) and the second argument is the upper limit (inclusive) for the return value.
calculate
in interface Function
aArgs
- 0 or more arguments to the function.
|
Formula 1.0.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |