this certainly simple answer but i'm a bit lost with pointers and C
I have an array with 12 elements and want randomly choose one...
BUT i want only choose one time each element... until all the elements has been choosen.
In an other langage i'll use a copy of my array and splice() each new element choosen from my array's copy...
But in C... i don't know how to do that.
You could maintain a shadow boolean array to see if the number has been chosen before, or simply negate the value in the array, if you're only expecting positive numbers.