creating a list actually is a bit cumbersome with a low level language like lite-c.

but you could also try something like that instead:

Code:
int array[192]; // fill it with 1..192
int numbers[10];
int n;

for(n=0; n<10; n++)
{
    index = random(191-n);
    numbers[n] = array[index];
    array[index] = array[191-n]; // remove the number from the array by replacing it with the last one in the array (the last one won't be accessed anymore)
}



it's not tested. probably it needs some small corrections (integer(),...) but you should get the idea.



edit: didn't see quadraxas' solution before doing my post. i think mine is better and more elegant. tongue quadraxas' solution also has random runtime. i think it's better than the original huge while clause though.