| Posted by CyberDog on 06/24/05 13:59 
Andrew @ Rockface wrote:> As each number is generated record it in an array, then check each new
 > number against the elements in the array.
 
 I would like to go with this
 
 Could you be so kind and write an example for me?
 
 is it something like this:
 
 while ($postition < $displayed_questions)
 {
 $question = array(
 $number => rand(1, $questions_in_database)
 )
 $number++
 }
 
 How to check if the number is used? While in a while?
  Navigation: [Reply to this message] |