View Single Post
Old 03-18-2006, 05:15 AM   #7 (permalink)
XxSP1DERxX
 
Join Date: Oct 2002
Age: 23
Posts: 4,689
Default

If you want to get a random chance, lets say 20%, you would do this

if ( 0.20 > Utility.RandomDouble() )
{
20% chance stuff goes here
}
else
{
80% chance stuff goes here
}

All basic percent chances are based on that format.
XxSP1DERxX is offline   Reply With Quote