TIL: How to pick a random line from a file in Ruby without holding it in memory
I want to pick one random line from a very large file using Ruby but without loading the whole file in memory.
Jun 15, 2020
I want to pick one random line from a very large file using Ruby but without loading the whole file in memory.