Лена
gesser
... // Считаем прочитанные строки чтобы найти выбранную случайно int counter = 1; while ( (line = reader.readLine()) != null ) { if ( counter == randomVal ) break; counter++; } ...