Json Random Generator: Difference between revisions
From Vintage Story Wiki
CreativeMD (talk | contribs) (Created page with "'''''avg''''': Stands for the default drop quantity. If var is 0 or not specified it will always drop the given average. '''''var''''': How much the drop rate can vary. Meani...") |
CreativeMD (talk | contribs) No edit summary |
||
Line 5: | Line 5: | ||
Furthermore you can also switch between different distribution modes using the '''''dist''''' property. | Furthermore you can also switch between different distribution modes using the '''''dist''''' property. | ||
<table class="wikitable | <table class="wikitable"> | ||
<tr> | <tr> | ||
<th colspan="2">Overview - Distribution modes</th> | <th colspan="2">Overview - Distribution modes</th> |
Revision as of 10:42, 8 November 2018
avg: Stands for the default drop quantity. If var is 0 or not specified it will always drop the given average.
var: How much the drop rate can vary. Meaning the drop rate can be avg - var
at minimum and age + var
at maximum.
Furthermore you can also switch between different distribution modes using the dist property.
Overview - Distribution modes | |
---|---|
Name | Explanation |
uniform | Select completely random numbers within avg-var until avg+var. |
triangle | Select random numbers with numbers near avg being the most commonly selected ones, following a triangle curve. |
gaussian | Select random numbers with numbers near avg being the most commonly selected ones, following a gaussian curve. |
narrowgaussian | Select random numbers with numbers near avg being the most commonly selected ones, following a narrow gaussian curve. |
inversegaussian | Select random numbers with numbers near avg being the least commonly selected ones, following an upside down gaussian curve. |
narrowinversegaussian | Select random numbers with numbers near avg being the least commonly selected ones, following an upside down gaussian curve. |
invexp | Select numbers in the form of avg + var, wheras low value of var are preferred. |
stronginvexp | Select numbers in the form of avg + var, wheras low value of var are strongly preferred. |
strongerinvexp | Select numbers in the form of avg + var, wheras low value of var are very strongly preferred. |
dirac | Select completely random numbers within avg-var until avg+var only ONCE and then always 0. |