in reply to Efficient ways of storing a data set for random access
I'd extend it by randomizing based on the actual number of item read from file, and I'd load the file at startup without touching it anymore; this way your program will be fast.
Or of course you could use one of the statistical modules...
|
|---|