$randnum = int(rand(100)); if ( $randnum > 20 ) #80% { #stuff for 1 } if ( $randnum > 90 ) #10% { #stuff for 2 and 3 }
In reply to Re: Need help with number generator
by lolindrath
in thread Need help with number generator
by meonkeys
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |