Results 1 to 3 of 3

Thread: Is it possible to determine odds of winning with PHP?

  1. #1



    Ban's Avatar
    Join Date
    Jan 2013
    Gender
    Location
    新世界
    Age
    20
    Posts
    2,135
    Thanks
    1,830
    Thanked 2,555 Times in 810 Posts


    Downloads
    386
    Uploads
    1
    Mentioned
    725 Post(s)
    Time Online
    117 d 7 h 54 m
    Avg. Time Online
    1 h 34 m
    Rep Power
    12
    Gamer IDs

    Steam ID: Lebzeit

    Is it possible to determine odds of winning with PHP?

    I mean, I want a set value/range of values to determine if I win or lose in a minigame for example.

    It's for a website me and my friend are making, we need a game that upon clicking will bring another page telling you if you won or not based on odds previously coded for each opponent... the problem is coding the odds... :x

    Anybody care to help? :3

  2. #2
    Little Brother


    Zachafer's Avatar
    Join Date
    Dec 2011
    Gender
    Posts
    1,206
    Thanks
    723
    Thanked 1,392 Times in 651 Posts


    Downloads
    81
    Uploads
    17
    Mentioned
    497 Post(s)
    Time Online
    21 d 17 h 32 m
    Avg. Time Online
    16 m
    Rep Power
    14
    Quote Originally Posted by Discord View Post
    I mean, I want a set value/range of values to determine if I win or lose in a minigame for example.

    It's for a website me and my friend are making, we need a game that upon clicking will bring another page telling you if you won or not based on odds previously coded for each opponent... the problem is coding the odds... :x

    Anybody care to help? :3
    If it's a simple true/false, totally random odds:


    But I'd recommend something more like this: http://stackoverflow.com/questions/8...centage-chance

  3. The Following User Says Thank You to Zachafer For This Useful Post:

    Ban (11-04-2013)

  4. #3



    Ban's Avatar
    Join Date
    Jan 2013
    Gender
    Location
    新世界
    Age
    20
    Posts
    2,135
    Thanks
    1,830
    Thanked 2,555 Times in 810 Posts


    Downloads
    386
    Uploads
    1
    Mentioned
    725 Post(s)
    Time Online
    117 d 7 h 54 m
    Avg. Time Online
    1 h 34 m
    Rep Power
    12
    Gamer IDs

    Steam ID: Lebzeit
    Quote Originally Posted by Zachafer View Post
    If it's a simple true/false, totally random odds:


    But I'd recommend something more like this: http://stackoverflow.com/questions/8...centage-chance
    Yes!
    That link, it's exactly what I was looking for, thanks <3

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •