I would like to create a array having 21 values between 0 to 20.I would like them to be in random and at the same time non-repeated.
I know how to create a random number between 0 to 20.
0 + rand()/(RAND_MAX/(20-0+1)+1)
But i don't know how to create those numbers such that it is not repeated comparing to previous numbers