Help with random choose...
1 Attachment(s)
Hi all again, I have a plugin, this is math games, each round is a competiton and if someone answers right, he'll win something. I want to include prize's random choice...Please help, thanks =)
|
Re: Help with random choose...
Equal chance:
Code:
Code:
|
Re: Help with random choose...
random_prize = random_num( minimum_prize, maximum_prize )
?? |
Re: Help with random choose...
Quote:
|
Re: Help with random choose...
Pay attention there is no case 3 in random(3)
random(3) is same as random_num(0, 2) code can't generate errors but case 3 gonna never be called. |
Re: Help with random choose...
Sorry about that. I edited my post to avoid confusion.
|
| All times are GMT -4. The time now is 19:01. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.