User Tools

Site Tools


en:examples:config:random_values_in_config

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
en:examples:config:random_values_in_config [2021/09/22 07:01 (4 years ago)] – created sausageen:examples:config:random_values_in_config [2021/09/23 08:36 (4 years ago)] (current) iarwain
Line 1: Line 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: 2021/09/22 07:01 (4 years ago) by sausage