Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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;


Comment on Re: Mixing Up a Text File
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://170993]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (12)
As of 2015-07-06 11:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (72 votes), past polls