Hello, friends! I am writing a generator of fake personalities, the problems begin even in such a tiny piece of code - the data is duplicated at regular intervals. If the output is longer - "Last Name First Name Patronymic Address Telephone, etc.", then repeated result lines go every 30 lines. When I deduce only surnames and indexes - each 100 lines. No, I believe that the randomizer can pull out the same last name from the archive of surnames periodically, but that he did it every 100 lines and generated the same six-digit index to it - thank you, my ideas ran out.
Loaded the same script on the hosting, there was updated the page - like duplicates did not notice. I am writing in NetBeans 8.0.2, output to localhost.
//Хватаем случайную фамилию $famtxt = file('surname.txt'); $surname = $famtxt[ array_rand($famtxt) ]; unset($famtxt); //Общий вывод $result0=$surname.' '.rand(100000, 999999); $resulttxt = fopen('result2.txt', 'a'); fwrite($resulttxt,$result0);