RE: Random numbers, prevent from being used more than once
the easiest thing to do would be an array and a function like:
function a{
int i is random;
for(int j=0,j<array.length;j++){
if(i==array[j]){
return a();
}
}
array[count]=i;
count++;
count=count%9;
return i;
}
something like that...
|