-
Notifications
You must be signed in to change notification settings - Fork 1
random
Daedalus1400 edited this page May 18, 2017
·
3 revisions
The random generic generates a random number within a specified range.
Added in release version 0.2.0
Must be "random".
Accepts a number. Default value is 0.
Accepts a number. Default value is 0.
The following example generates a random floating point value between 5.0 (inclusive) and 20.0 (exclusive):
{"type": "random", "lowerbound": "5", "upperbound": "20"}
This is implemented as
java.util.random.nextDouble() * (upperbound - lowerbound) + lowerbound;