in reply to Re: Randomly select values from array
in thread Randomly select values from array

@data = sort {rand < rand} @data;
is not guaranteed to work, much less return something random. Use List::Util's shuffle instead.