while( <> ){ $j = int rand @array; @array[$.,$j] = ($array[$j],$_); } print @array; [download]
In reply to Re: Mixing Up a Text File by I0 in thread Mixing Up a Text File by Anonymous Monk