Feb 26, 2009, 12:13 PM
Ok this time it is a simple thing that I just cannot "get".
I need to fill an array b[6] with random unique numbers 1-15. I can generate random numbers and everything just fine... I just cannot figure out a way to compare the generated number to the array already done to check if it is a duplicate. And of course if not a duplicate, put it in the array. Rinse and repeat.
Any ideas?
I need to fill an array b[6] with random unique numbers 1-15. I can generate random numbers and everything just fine... I just cannot figure out a way to compare the generated number to the array already done to check if it is a duplicate. And of course if not a duplicate, put it in the array. Rinse and repeat.
Any ideas?

![[Image: signature.jpg]](http://www.darkgrendal.com/swinetrek1/kb1/sig.php/39039/rokh/signature.jpg)