$n = int rand `wc -l $file`; do { $l = $_ if $. == $n } while <>;
In reply to Re: How do I pick a random line from a file?
by Anonymous Monk
in thread How do I pick a random line from a file?
by vroom
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |