Im using the following code snippet to load my text file into hashset .
HashSet<string> hashs = new HashSet<string>(File.ReadLines("textFile.txt"));
I wonder if there is any easy way to get a random string from it?
Assuming textFile.txt contains 10 lines, I would like to randomize and capture one of these existing lines.
c # hashset
user1213488
source share