Random
Random
Random, works on either a category, or an item itself.
If it's on the category, it decides the % chance that this category has of appearing. If it is missing from the mixed or optional category, that category will act like a [random:0.5] is on it.
If it's on the item, it also decides the % chance that this item has of appearing, each time this item is calculated.
Tops [random-min:1][random-max:2] Top 1 [random:0.2] Top 2 [random:0.2] Top 3 [random:0.05] Top 4 [random:0.05] |
Let's pretend Top 4 was chosen. The second attempt, it will simply move down the list, starting from the top, and roll the chance it sees. 20% chance for the first one, if it's a hit, it'll stop because it has two shirts already.. If it continues, it will roll again on the second shirt, and so on and so forth. |
Random Min
Adding [ramdom-min:2] to a category, will force the category to randomly select at least 2 items, because of it's nature, the numbers are 'normalized' to 100% and one is always chosen. For example if there is only one item at 0.00001% chance, it will be chosen if it's the only item.
Random Max
Adding [random-max:2] will go through the category list, rolling the dice, if three items turn on, it will stop turning on more items. This means there is less and less chance lower items are seen, as the chance one above was chosen is very high. For example:
Tops [random-min:2][random-max:2] Top 1 [random:0.4] Top 2 [random:0.4] Top 3 [random:0.4] Top 4 [random:0.4] |
Max of two items will be chosen. the first one has a 40% chance to show, and if it DOES show, the second item has a 40% chance to show too. Assuming that both of these become visible, now the 3rd item won't be able to show. |
Because of it's nature, there are globally less chances to see items lower on the list, one way to understand it is... is I have a [random-max:1]
Tops [random-min:1][random-max:1] Top 1 [random:0.9] Top 2 [random:0.9] Top 3 [random:0.9] Top 4 [random:0.9] |
The chance the first one is seen and turned on, blocking the following is 90%, so in real life, you will only see Top 2, 9% of the time, (90% of the remaining 10%. Then Top 3 you will only see 0.9% of the time (90% of the remaining 1%), and Top 4 you will basically never see. |
Random Children
Random Children serves to quickly add randomness on each child without typing as much. The following two examples behave the same way.
Tops [random-min:1][random-max:1] Top 1 [random:0.1] Top 2 [random:0.1] Top 3 [random:0.1] Top 4 [random:0.1] |
Tops [random-min:1][random-max:1][random-c:0.1] Top 1 Top 2 Top 3 Top 4 |
Common Problems
Tops [mixed] Top 1 [random:0.1] Top 2 [random:1] Top 3 [random:5] Top 4 |
In the example, randomness won't happen, because it's never needed. |
Random will work on [fixed] as it acts like a [random-min:1] also, if no item is selected.
|