Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: How do I pick a random line from a file?

by Crulx (Monk)
on Jan 21, 2000 at 05:06 UTC ( #2292=note: print w/replies, xml ) Need Help??


in reply to How do I pick a random line from a file?

More cryptically
srand; rand($.) < 1 && ($it = $_) while <>;

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (2)
As of 2022-09-27 04:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer my indexes to start at:




    Results (118 votes). Check out past polls.

    Notices?