Ask a Question
Advertise on boostr.in
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.
I want to the probabilities of getting each line to be equal.
Sep 7, 2015
to add a comment.
Your name to display (optional):
Email me at this address if my answer is selected or commented on:
Email me if my answer is selected or commented on
Privacy: Your email address will only be used for sending these notifications.
To avoid this verification in future, please