Imtay22 0 Report post Posted June 13, 2007 (edited) I am making a script in php, and for it I need to know how to make a random 7 digit code. I think it has something to do with md5, but i am not sure. Thanks!EDIT- Can someone please change the title to "How to make a random 7 digit code in php?" Thanks! Edited June 13, 2007 by Imtay22 (see edit history) Share this post Link to post Share on other sites
Saint_Michael 3 Report post Posted June 13, 2007 It uses the rand function which is basically what makes some random, however I did find a script that could be useful mind you I made some alterations so it will work for seven numbers. <?phpprint rand() . "<br>";print rand(1000000, 9999999);?> Basically it will produce a random 7 digit number, mind you this was set up to produce a number between 1 million and 9.9 million. I believe there is another set up that will produce individual numbers instead of one large group. Share this post Link to post Share on other sites
Imtay22 0 Report post Posted June 13, 2007 Okay that's it, S&M! Thanks! I will test this out now. Will post back if I need help. Share this post Link to post Share on other sites