so where do i put that number 2147483647
Type: Posts; User: abbylennon
so where do i put that number 2147483647
i got it to work
i used this
var lines = File.ReadAllLines(path);var r = new Random();
var randomLineNumber = r.Next(0, lines.Length - 1);
var line = lines[randomLineNumber];
do u think...
any suggestion for the random class
one best suited to enter that value
thx alot
i have a 15 mb file with words in it what is the best way to select a random name in it without the app crashing on startup because of memory overload
well its a text fille the one u get when u right click on desktop
the file loook like this
word1
word2
word3
i get the part of how to read the file i just dont get how to make it random
hi i got this problem here where i need the string to
be a random string out of a text file full of strings
it just grabs the first one
how to make to it takes a random one out of all of them