Difference between revisions of "Talk:GetRandomPercent"
Jump to navigation
Jump to search
Clarification for first example.
imported>TheImperialDragon |
imported>JOG (Clarification for first example.) |
||
Line 14: | Line 14: | ||
I see, thank you. [[User:TheImperialDragon|The Imperial Dragon]] 13:44, 11 June 2006 (EDT) | I see, thank you. [[User:TheImperialDragon|The Imperial Dragon]] 13:44, 11 June 2006 (EDT) | ||
---- | |||
Here's the math behind the first example: | |||
short dice | |||
set dice to 1 + 0.06 * GetRandompercent | |||
=> | |||
1 + int(0.06 * '''0''') = 1 + 0 = 1 | |||
1 + int(0.06 * '''99''') = 1 + int(5.94) ) 1 + 5 = 6 |