in reply to Re: Extract random records from text file
in thread Extract random records from text file
However there is one caveat. While it does indeed avoid reading the file into memory, and the actual questions chosen are randomized, the first 10 questions in the list will always appear "in position" if they appear. For perfectly random questions, therefore, it would be best to throw in a shuffle at the end.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re (tilly) 2 (unrandomness): Extract random records from text file
by runrig (Abbot) on Oct 02, 2001 at 23:34 UTC | |
by tilly (Archbishop) on Oct 03, 2001 at 21:30 UTC |