+ Reply to Thread
Results 1 to 3 of 3

Thread: Random function.

  1. #1
    taekwondokid42 is offline x10 Lieutenant taekwondokid42 is an unknown quantity at this point
    Join Date
    Aug 2007
    Posts
    268

    Random function.

    Is there any tag that states "if this random number has already been chosen, try again," or do I have to write an if/then statement/loop?

  2. #2
    Slothie's Avatar
    Slothie is offline Lord Of The Keys Slothie is an unknown quantity at this point
    Join Date
    Sep 2007
    Location
    Singapore
    Posts
    1,432

    Re: Random function.

    Keep the random numbers that have been chosen in an array and use an if else statement with the in_array command.

    Easiest 70 points you'll make on x10

    Feel free to add my reputation by clicking on the if you found my post helpful to you :P


    If I am not responding to your PMs, that means I am ignoring you. Take a hint.



    09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0


  3. #3
    taekwondokid42 is offline x10 Lieutenant taekwondokid42 is an unknown quantity at this point
    Join Date
    Aug 2007
    Posts
    268

    Re: Random function.

    *sigh*, the hard way...

    O well, what can you do? Thankyou for the help again.

+ Reply to Thread

Similar Threads

  1. Using mail() Function
    By wrhs2002 in forum Free Hosting
    Replies: 2
    Last Post: 10-05-2007, 02:37 AM
  2. Image Function Problem
    By dharmil in forum Free Hosting
    Replies: 1
    Last Post: 01-05-2007, 08:50 PM
  3. Random Images And text
    By ak007 in forum Tutorials
    Replies: 9
    Last Post: 11-21-2005, 02:45 AM
  4. Random Talk Radio - Jobs
    By randomtr in forum The Marketplace
    Replies: 2
    Last Post: 09-28-2005, 06:14 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers