set function random without replacement