Difference between revisions of "Talk:GetRandomPercent"

306 bytes added ,  12:38, 31 August 2006
m
no edit summary
imported>JOG
imported>Dejunai
m
Line 81: Line 81:


int(5/99 * '''99''') = int(6.00) = '''6''' => Chance: 1%
int(5/99 * '''99''') = int(6.00) = '''6''' => Chance: 1%
----
Seems to me that for Random Numbers up to 50 you can use this Syntax:
short var
Set var to ( GetRandomPercent % <2..50> ) + 1
Where "Percent Sign" is the Modulus Operator...
Should effectively give every value 2 thru 50 an equal chance...
[[User:Dejunai|Dejunai]] 13:38, 31 August 2006 (EDT)
Anonymous user