Jump to content


New Members
  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About impekt

  • Rank
  1. Yep, i have that : <?php $regularNumbers = 5; $bonusNumbers = 1; $regularNumbersMin = 1; $regularNumbersMax = 69; $bonusNumbersMin = 1; $bonusNumbersMax = 26; $bonusUniqueFromRegular = false; $results = array( 'regular_nums' => array(), 'bonus_nums' => array() ); foreach(range(1, $regularNumbers) as $i){ $randNum = mt_rand($regularNumbersMin, $regularNumbersMax); while(in_array($randNum, $results['regular_nums'])){ $randNum = mt_rand($regularNumbersMin, $regularNumbersMax); } array_push($result
  2. Hello, I created a small simple script that generates a sequence of numbers and I would like to put a (hidden) list of numbers as the starting script, and I would like the script to detect if there is the same sequence of numbers than in the list, and if so, the script reset until it’s goodIt’s for my school, and I’m having trouble :)
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.