Difference between revisions of "GetRandomPercent"

Jump to navigation Jump to search
68 bytes added ,  02:30, 15 July 2006
no edit summary
imported>JOG
(The short vs. floats behavior is covered in set not random functions)
imported>JOG
short dice
set dice to 1 + 0.06 * GetRandompercent ; => 1 to 6 (5.94 is truncated to 5)
 
short rnd
set rnd to 5.0/99 * Getrandompercent ; => 0 to 5
 
float rnd
float rnd
set rnd to 5/99 * Getrandompercent ; => 0.00 to 5.00
 
 
[[Category: Functions]]
Anonymous user

Navigation menu