User Tools

Site Tools


en:examples:config:random_values_in_config

Random values in Config

Example

From a list

[Section]
Value = 1 # 2.5 # 10

From a range (floats)

[Section]
Value = 0 ~ 10

From a range with steps/increments

[Section]
Value = 0 ~ 2 ~ 10 ; All even numbers

From a range with dynamic boundaries (using a lazy command)

[Section]
Min   = 1
Max   = 10
Value = % > @, > Get < Max, > @, > Get < Min, Random < < ; Min & Max can be modified at runtime

en/examples/config/random_values_in_config.txt · Last modified: 2021/09/23 08:36 (3 years ago) by iarwain