Difference between revisions of "GetRandomPercent"
Jump to navigation
Jump to search
no edit summary
imported>JOG |
imported>JOG |
||
Line 13: | Line 13: | ||
==Notes== | ==Notes== | ||
*To generate a random number between | *To generate a random number between 1 and max: | ||
<pre>set randVal to min + GetRandomPercent * max / 100</pre> | <pre>set randVal to 1 + GetRandomPercent * max / 100</pre> | ||
To generate a random number between min and max: | |||
<pre>set randVal to min + GetRandomPercent * (max-min+1) / 100</pre> | |||
==See Also== | ==See Also== |