Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Mixing Up a Text File

by I0 (Priest)
on Jun 02, 2002 at 07:54 UTC ( #170993=note: print w/replies, xml ) Need Help??


in reply to Mixing Up a Text File

while( <> ){ $j = int rand @array; @array[$.,$j] = ($array[$j],$_); } print @array;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://170993]
help
Chatterbox?
and one hand claps...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (10)
As of 2018-06-22 15:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (124 votes). Check out past polls.

    Notices?