לאחר יצירת מערך מחרוזות, צור משתנה שיקבל מספר אקראי - המספר האקראי הוא האינדקס במערך המחרוזות.
הנה הקוד ->Random aa = new Random();
StreamReader sr = new StreamReader("output.txt");
string box = new string;
string line;
int i = 0;
while ((line = sr.ReadLine()) != null)
box = line;
sr.Close();
textBox1.Text = box.ToString();
העתק והדבק בצד שמאל