Pergunta de entrevista da empresa Teradata

How to randomly pick some values in an int array without duplicate(you can rearrange the order of elements in array, but can not erase or insert elements).