In reply to javatea:
If you see the example, the stored values in the value array is in random order. and my requirement is to rearrange the values so that first all unique value get stored in temp array.(if you see all value are in equal number i.e. number of 1,4,3,2 all are equal i.e. 3).
Shuffle just randomize again the complete array, It don’t made first all set of unique value then again all set of unique value.
Thanks,