Table of Contents

Ranges

Ranges are used in various places where a random number from the specified range should be picked. These ranges can either be used for integers, floats or doubles depending on the context and this type is indicated where they are used. You may also inline the value by only specifying a number, in which case min and max are set to the same value.

Fields

Name Description Type Default Value
min The minimum value to pick from. An optional numerical element depending on the context The minimum value of the type1)
max The maximum value to pick from. An optional numerical element depending on the context The maximum value of the type2)

Example

{
  "min": 5,
  "max": 19
}
1)
-2147483648 for integers. See single-precision floating point numbers for floats and double-precision floating point numbers for doubles.
2)
2147483647 for integers. See single-precision floating point numbers for floats and double-precision floating point numbers for doubles.