Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Programming Q&A
Picking a reward amount based on odds
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Ecko" data-source="post: 375429" data-attributes="member: 24874"><p>I think you should re-read what he is asking for. The code you provided:</p><p>[php]$random = $possible[array_rand($possible)];[/php]</p><p>That is a 33.33% chance for any of the amounts.</p></blockquote><p></p>
[QUOTE="Ecko, post: 375429, member: 24874"] I think you should re-read what he is asking for. The code you provided: [php]$random = $possible[array_rand($possible)];[/php] That is a 33.33% chance for any of the amounts. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
Picking a reward amount based on odds
Top