I have two arrays.
One is filled with data ( in exemple: numbers ).
The other is empty.
I want to generate a random position in order to acess $orig_array wich is the one with data. With that position, I'll acess the array and asign the value in that array position to a new postion in the $target_array.
something like
$random_number = rand ( ) % 10;
$target_array[] = $orig_array[$random_number]
Okay?
So, now, the problem is... the rand can generate the same number twice, wich means that the $orig_array would have duplicate values.
So what I want, is to do something that allows me to ONLY FETCH values in positions that have no been fetched.
matto has already given an idea, so, I just posted this so that you, and whoever cares, can understand what I was trying to do.