How to Select a winner randomly

Discussion in 'General Chat' started by sachy24, Jul 31, 2008.

  1. #1
    I want to create a contest. Lets say if 100 members decide to participate in the contest, i want to know how to choose a winner randomly from the 100 participants.
     
    sachy24, Jul 31, 2008 IP
  2. 5starpix

    5starpix Notable Member

    Messages:
    6,380
    Likes Received:
    83
    Best Answers:
    0
    Trophy Points:
    235
    #2
    Use http://www.random.org/

    Assign a person a number, and it generates a random number, and that person wins
     
    5starpix, Jul 31, 2008 IP
  3. Trusted Writer

    Trusted Writer Banned

    Messages:
    1,370
    Likes Received:
    52
    Best Answers:
    0
    Trophy Points:
    160
    #3
    Trusted Writer, Jul 31, 2008 IP
  4. almondj

    almondj Peon

    Messages:
    768
    Likes Received:
    11
    Best Answers:
    1
    Trophy Points:
    0
    #4
    php rand(), but then u would need to input quite a bit of data.
     
    almondj, Jul 31, 2008 IP
  5. khaty

    khaty Active Member

    Messages:
    399
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    73
    #5
    always choose me.. hehe you don't have to waste your time thinking who to pick as a winner.
     
    khaty, Jul 31, 2008 IP
  6. sachy24

    sachy24 Well-Known Member

    Messages:
    605
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    110
    #6
    Thanks for the reply guys.
    @khaty you are my winner. you will get 2 free tickets to travel around the world for 80 days :)
     
    sachy24, Jul 31, 2008 IP
  7. chandan123

    chandan123 Prominent Member

    Messages:
    11,586
    Likes Received:
    578
    Best Answers:
    0
    Trophy Points:
    360
    #7
    use random functions within 100 :p for a simple solution

    or just divide the prize :D
     
    chandan123, Jul 31, 2008 IP
  8. seo_jack

    seo_jack Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Easiest method: have all the entrants on a list, turn around three times with your eyes closed and place your finger somewhere on the screen. Winner!
     
    seo_jack, Aug 1, 2008 IP
  9. mikey1090

    mikey1090 Moderator Staff

    Messages:
    15,869
    Likes Received:
    1,055
    Best Answers:
    0
    Trophy Points:
    445
    Digital Goods:
    2
    #9
    Input them all into a database (mysql). use php to return 1 result in random order.
     
    mikey1090, Aug 1, 2008 IP