Randomly selecting lines from files

Posted by AlgoMan on Stack Overflow See other posts from Stack Overflow or by AlgoMan
Published on 2010-06-09T20:49:13Z Indexed on 2010/06/09 20:52 UTC
Read the original article Hit count: 379

Filed under:
|
|

I have bunch of files and very file has a header of 5 lines. In the rest of the file, pair of line form an entry. I need to randomly select entry from these files. How can i select random files and random entry(pair of line, excluding header) ?

© Stack Overflow or respective owner

Related posts about python

Related posts about perl