15.08.2014, 15:15
If you're using MYSQL right now, I suppose you have the saving system done, now that you've finished that, you need to loop through all the created numbers from the database(loaded) and then check that the random number generated isn't equal to any of the already settled numbers in the database.