Difference between revisions of "GetRandomPercent"
Jump to navigation
Jump to search
The short vs. floats behavior is covered in set not random functions
imported>Gamall |
imported>JOG (The short vs. floats behavior is covered in set not random functions) |
||
|
<pre>set randVal to min + (GetRandomPercent * (max - min)) / 99</pre>
'''
short dice
set dice to 1 + 0.06 * GetRandompercent ; => 1 to 6 (5.94 is truncated to 5)
float rnd
set rnd to 5/99 * Getrandompercent ; => 0.00 to 5.00
[[Category: Functions]]
| |||