en:examples:config:random_values_in_config
| Next revision | Previous revision |
| en:examples:config:random_values_in_config [2021/09/22 14:01 (5 years ago)] – created sausage | en:examples:config:random_values_in_config [2025/09/30 17:26 (14 months ago)] (current) – external edit 127.0.0.1 |
|---|
| ====== Random values in Config ====== | ====== Random values in Config ====== |
| |
| |
| ===== Example ===== | ===== Example ===== |
| | |
| | === From a list === |
| |
| <code=ini> | <code=ini> |
| [MySection] | [Section] |
| Min = 10 | Value = 1 # 2.5 # 10 |
| Max = 100 | |
| Value = % > @, > Get < Max, > @, > Get < Min, Random < < | |
| </code> | </code> |
| |
| | === From a range (floats) === |
| | |
| | <code=ini> |
| | [Section] |
| | Value = 0 ~ 10 |
| | </code> |
| | |
| | === From a range with steps/increments === |
| | |
| | <code=ini> |
| | [Section] |
| | Value = 0 ~ 2 ~ 10 ; All even numbers |
| | </code> |
| | |
| | === From a range with dynamic boundaries (using a lazy command) === |
| | |
| | <code=ini> |
| | [Section] |
| | Min = 1 |
| | Max = 10 |
| | Value = % > @, > Get < Max, > @, > Get < Min, Random < < ; Min & Max can be modified at runtime |
| | </code> |
| |
en/examples/config/random_values_in_config.1632319301.txt.gz · Last modified: 2025/09/30 17:26 (14 months ago) (external edit)