Quote:
Originally Posted by Blue Snake.
PHP Code:
public randoms(const start, const end, dest[], const len)
{
new number, bool:found=false
for(new i=0;i<len;i++)
{
while(!found)
{
found=false
number=random_num(start, end)
for(new j=0;j<i;j++)
if(number!=dest[j])
{
found=true
break;
}
dest[i]=number
}
}
}
Not tested.
|
I don't understand your code

Can you tell more detail about it and I update a little of my code in #1.
__________________
You can be a SUPER coder but you Haven't to say such as "stupid, etc." words to the others