good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^5: Random sampling a variable length file.by bcrowell2 (Friar) |
on Dec 26, 2009 at 18:43 UTC ( [id://814439]=note: print w/replies, xml ) | Need Help?? |
Yeah, if they're uncorrelated, then there's no bias introduced. You may need to special-case the situation where you randomly land on the final record, in which case you have to pick the first record.
In Section
Seekers of Perl Wisdom
|
|