|
non-repetitive random number
hi guys,
when i generate k random numbers in range from 1 to 100, usually i got a few numbers that repeat themselves.
how can i generate the k non-repetitive random number?
i tried to do error checking, whether the new generated random number is the same with the old one, but it's not working
thanks
|