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="Benden" data-source="post: 375409" data-attributes="member: 70"><p>Hello friends,</p><p></p><p>I will try to explain this the best I can.</p><p>On a webpage a user will have 3 radio buttons to choose from then hit submit, however it doesn't matter what radio button they choose as it will be random</p><p>Then once they submit radio button, I want it to choose an amount of eitherr 50, 100, or 250 to add to their account. (these are based on odds of 70% or 50, 20% for 100 10% for 250, I don't want 33.33% chance for all). Then it would set like 'access' in the DB of the user to 0</p><p>So, what I need is that code basically.</p><p></p><p><img src="https://i.sharefa.st/AwGIu4vN7ri2.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p>Ignore values on the image, it isn't equaling 100% <img src="/styles/default/xenforo/smilies/emojione/smile.png" class="smilie" loading="lazy" alt=":)" title="Smile :)" data-shortname=":)" /></p></blockquote><p></p>
[QUOTE="Benden, post: 375409, member: 70"] Hello friends, I will try to explain this the best I can. On a webpage a user will have 3 radio buttons to choose from then hit submit, however it doesn't matter what radio button they choose as it will be random Then once they submit radio button, I want it to choose an amount of eitherr 50, 100, or 250 to add to their account. (these are based on odds of 70% or 50, 20% for 100 10% for 250, I don't want 33.33% chance for all). Then it would set like 'access' in the DB of the user to 0 So, what I need is that code basically. [IMG]https://i.sharefa.st/AwGIu4vN7ri2.png[/IMG] Ignore values on the image, it isn't equaling 100% :) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
Picking a reward amount based on odds
Top