Organizational Research By

Surprising Reserch Topic

how to get a random line of a text file in java using -'java'


how to get a random line of a text file in java  using -'java'

Say there is a file too big to be put to memory. How can I get a random line from it? Thanks.

Update:
I want to the probabilities of getting each line to be equal.
    
asked Sep 7, 2015 by rajesh
0 votes
5 views



Related Hot Questions



Government Jobs Opening


...