Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> How To Make A Random 7 Number Code?
Imtay22
post 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
Spam Patrol



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
Go to the top of the page
 
+Quote Post
Saint_Michael
post 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
T17 GFX Crew



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.
Go to the top of the page
 
+Quote Post
Imtay22
post 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
Spam Patrol



Okay that's it, S&M! Thanks! I will test this out now. Will post back if I need help.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. How do you test your php code(75)
  2. Php Clock(7)
  3. Change Permission With Php Code(3)
  4. Adapting Html Code Embed To Work On Phpnuke(7)
  5. Dynamic Image / Signature Generator(12)
  6. Wap Source Code Viewer(4)
  7. You Want It, I Can Make It(49)
  8. Protecting My Code(5)
  9. More Dynamic ?id=browsing With Php (associative Array)(1)
  10. Display The Current Date/time(3)
  11. Use Bb Code On Your Site!(7)
  12. Some Basic Php Code Snippets For All Levels Of Experience(3)
  13. My Code Doesnt Resize Large Images, Please Help.(2)
  14. Php Education Class (first Code)(0)
  15. Whats Wrong>?(9)
  1. Awesome Source Code Viewer Script(7)
  2. Html Code Tester. Online Script(15)
  3. I Need Some Proof Reading For My Code Please! [resolved](7)
  4. Will This Code Work(5)
  5. Use Rss In Php Code(3)
  6. Php Code(15)
  7. Php Code Needed(5)
  8. Php Code?(12)
  9. Php Code Needed Iii(10)
  10. Php And Mysql Programming(2)
  11. Malicious Code Injection(3)
  12. Php Source Code Unveiled In Browser?(7)
  13. Create Table - Mysql Code - Help(1)


 



- Lo-Fi Version Time is now: 25th July 2008 - 09:06 PM