in reply to Need help with number generator
$randnum = int(rand(100)); if ( $randnum > 20 ) #80% { #stuff for 1 } if ( $randnum > 90 ) #10% { #stuff for 2 and 3 }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: Need help with number generator
by cmburns (Acolyte) on Aug 10, 2000 at 19:03 UTC |