Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: A series of random number and others

by blokhead (Monsignor)
on Oct 09, 2008 at 01:02 UTC ( #716110=note: print w/ replies, xml ) Need Help??


in reply to A series of random number and others

I just posted a simple method to Randomly select N lines from a file, on the fly, as a snippet since I wasn't able to find it anywhere else here on the site. Perhaps I just missed it -- hope I haven't duplicated any effort. It is a generalization of the "usual" trick for choosing 1 random line from a file, on the fly.

blokhead


Comment on Re: A series of random number and others

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2015-08-01 03:36 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 (285 votes), past polls