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

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.

...