how to get select  elements randomly from an array
<p>i have an array with 12 objects {0,1,2,3,4,5,6,7,8,9,10,11}</p>

<p>from this array i have to pick 6 values randomly,but they are unique not repeated.</p>

<p>i am using this 
for (int i =0; i&lt;6; i++) {
            NSLog(@"%d",rand()%12);
        }
it gets as 7 1 5 2 10 8</p>

<p>for second time it gets as 0 2 11 1 0 5,Here 0 is repeated.But i always need as my first output means values are not repeated.</p>

<p>how can i done, </p>

<p>can any one please help me.</p>

<p>Thank u in advance.     </p>
