i am a newbie in here so i apogolize if i make mistakes. Now i have a program that takes a random int from a text file that contains one million digits of number Pi. the lenght is also random but it shouldn't be longer than 128 digits. I looked for it so much but i was able to find this code that makes my computer get frozen by the cpu usage being %100.
string[] allLines = File.ReadAllLines(Application.StartupPath+ "\\pi.txt");
Random rnd1 = new Random();
textBox2.Text=(allLines[rnd1.Next(allLines.Length)]);
also when i got the random ints, i need it to be printed into textBox2's text. i am terribly sorry for being such a noob.