title: PHP: rand() or array_rand trouble
body: <p>Results in result2.txt repeats every ~100 string. 
  Yes, same surnames and same rand(100000, 999999) results are cycling every 100 values</p>
  
  <p>NetBeans 8.0.2</p>
  
  <pre><code>//Get surname
  $famtxt = file('surname.txt');
  $surname = $famtxt[ array_rand($famtxt) ]; 
  unset($famtxt); 
  
  //Results
  $result0=$surname.' '.rand(100000, 999999);                               
  $resulttxt = fopen('result2.txt', 'a');
  fwrite($resulttxt,$result0); 
  </code></pre>