Skip to content

Random Integer

This variable provides an random integer between specified interval.

Format

Interval from which the integer should be generated from, in the format <min>..<max>.

Arguments

This variable does not have any arguments.

Example

And value for variable "AtomicRandomInteger.weight" is "10..30"

This can then be used in a template:

{
    "weight_tons": {{ AtomicRandomInteger.weight }}
}

AtomicRandomInteger.weight will then be anything between, and including, 10 and 30.

atomicrandominteger__base_type__

def atomicrandominteger__base_type__(value: str) -> str

[view_source]

Validate values that AtomicRandomInteger can be set with.