Generate random number 1-10 upon registration without repeat
All right, I figured it out. But if someone wants to suggest something better, please feel free and I will mark it correct. // array of previously-assigned numbers (get this by looping through the registered users -not shown) $numbers_already_taken = array(3,8,1); // get all the numbers between 1-10 $numbers = range(1, 10); // shuffle the … Read more