four unequal random number
how to generate four unequal random number in a array. , Something with four loops will do it , maybe some other way exist , please tell me.
|
Re: four unequal random number
random[sizeof(array)] ?
|
Re: four unequal random number
:twisted:
i meant , i want to create 4 random num which are unequal to each other.. PHP Code:
|
Re: four unequal random number
The only way to make sure they are not the same is to use a loop
|
Re: four unequal random number
Quote:
|
Re: four unequal random number
What is the range of these random numbers?
If you keep it 1-31 or 0-30 you can use a bitsum instead of looping through all previous values. |
| All times are GMT -4. The time now is 09:38. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.