How to set the values in serial on getting random order from dynamic array

In reply to myselfprakhar:

using array method shuffle()


// assume value[] is given
temp = new[value.size](value);
temp.shuffle();