Difference between revisions of "Talk:GetRandomPercent"

90 bytes added ,  08:44, 30 July 2006
no edit summary
imported>JOG
imported>JOG
Line 49: Line 49:




And the Min/Max formula was wrong:
short dice
set dice to 6/99 * GetRandompercent


short dice
set dice to 5/99 * GetRandompercent


would return this:
Is the loaded variant and returns this:
 
 
int(6/99 * '''00''') = int(0.00) = '''0'''
 
int(6/99 * '''16''') = int(0.97) = '''0''' => Chance: 17%


int(5/99 * '''00''') = int(0.00) = '''0'''
int(5/99 * '''17''') = int(1.03) = '''1'''  


int(5/99 * '''19''') = int(0.96) = '''0''' => Chance: 20%
int(5/99 * '''32''') = int(1.94) = '''1''' => Chance: 16%


int(5/99 * '''20''') = int(1.01) = '''1'''  
int(5/99 * '''33''') = int(2.00) = '''2'''


int(5/99 * '''39''') = int(1.98) = '''1''' => Chance: 20%
int(5/99 * '''49''') = int(2.97) = '''2''' => Chance: 17%


int(5/99 * '''40''') = int(2.02) = '''2'''
int(5/99 * '''50''') = int(3.03) = '''3'''


int(5/99 * '''59''') = int(2.98) = '''2''' => Chance: 20%
int(5/99 * '''65''') = int(3.94) = '''3''' => Chance: 16%


int(5/99 * '''60''') = int(3.03) = '''3'''
int(5/99 * '''66''') = int(4.00) = '''4'''


int(5/99 * '''79''') = int(3.99) = '''3''' => Chance: 20%
int(5/99 * '''82''') = int(4.97) = '''4''' => Chance: 17%


int(5/99 * '''80''') = int(4.04) = '''4'''
int(5/99 * '''83''') = int(5.03) = '''5'''


int(5/99 * '''98''') = int(4.98) = '''4''' => Chance: 19%
int(5/99 * '''98''') = int(5.94) = '''5''' => Chance: 16%


int(5/99 * '''99''') = int(5.00) = '''5''' => Chance: 1%
int(5/99 * '''99''') = int(6.00) = '''6''' => Chance: 1%
Anonymous user