|
|
|
|
![]() ![]() |
Jun 13 2007, 12:30 AM
Post
#1
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 292 Joined: 27-January 07 From: Winter is cold here. Member No.: 37,984 ![]() |
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! This post has been edited by Imtay22: Jun 13 2007, 12:41 AM |
|
|
|
Jun 13 2007, 03:17 AM
Post
#2
|
|
|
$p4m 0n j00 $h4m3 m3 0nc3 $p4m 0n m3 $h4m3 m3 7\/\/1c3 ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 6,305 Joined: 21-September 04 From: 9r33|\| 399$ 4|\|D 5P4/\/\ Member No.: 1,218 ![]() |
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.
CODE <?php print 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. |
|
|
|
Jun 13 2007, 03:40 PM
Post
#3
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 292 Joined: 27-January 07 From: Winter is cold here. Member No.: 37,984 ![]() |
Okay that's it, S&M! Thanks! I will test this out now. Will post back if I need help.
|
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 25th July 2008 - 09:06 PM |