• Hey Guest,

    We wanted to share a quick update with the community.

    Our public expense ledger is now live, allowing anyone to see how donations are used to support the ongoing operation of the site.

    👉 View the ledger here

    Over the past year, increased regulatory pressure in multiple regions like UK OFCOM and Australia's eSafety has led to higher operational costs, including infrastructure, security, and the need to work with more specialized service providers to keep the site online and stable.

    If you value the community and would like to help support its continued operation, donations are greatly appreciated. If you wish to donate via Bank Transfer or other options, please open a ticket.

    Donate via cryptocurrency:

    Bitcoin (BTC):
    Ethereum (ETH):
    Monero (XMR):
nigelhernandez

nigelhernandez

Experienced
Apr 14, 2020
270
I'm trying to program two small problems regarding probability. I'm not exactly sure how to begin. Here there are below:

Toyoda
 
LastWhisper

LastWhisper

Who cares if I'm drunk?
Oct 29, 2019
227
Well, I know Java a bit. What do exactly you need?
 
S

summers

Visionary
Nov 4, 2020
2,493
I don't know Java, but my approach to #2 would be generate 2 random integers, lets say from 1 to 100. If both numbers are between:
1-50, win 10euro
51-77, win 20euro
78-92, win 50euro
93-98, win 200euro
99&100, win 1000euro
since the selection of integers from 1-100 is random, it doesn't make any difference statistically that prizes are grouped.

Beginning of #3 would be have a user input values into 5 variables, and check if each is equal to any of the previous between each input.
I'm not quite sure what the question is asking regarding the sum of 10 numbers, since there are only 5 being entered.
 
F

Frew

Member
Jan 7, 2020
62
I feel part one of the question contains missing details?
 
LastWhisper

LastWhisper

Who cares if I'm drunk?
Oct 29, 2019
227
The solution to the problem. Anything really.
I can write a code if you need. And as said above, it seems these problems a bit depends on something you not included here, so that details would be useful.
 
nigelhernandez

nigelhernandez

Experienced
Apr 14, 2020
270
I can write a code if you need. And as said above, it seems these problems a bit depends on something you not included here, so that details would be useful.

Thanks.,

Well basically we're on the topic of 'for' loops and arrays. I think we're supposed to solve it through that.

Could you post the code in private DM? please?
 
LastWhisper

LastWhisper

Who cares if I'm drunk?
Oct 29, 2019
227
Thanks.,

Well basically we're on the topic of 'for' loops and arrays. I think we're supposed to solve it through that.

Could you post the code in private DM? please?
I'll send in a half-hour.
Thanks.,

Well basically we're on the topic of 'for' loops and arrays. I think we're supposed to solve it through that.

Could you post the code in private DM? please?
For some reason I can't start a conversation, could you send me something in DM so I can reply you?
 
Last edited:

Similar threads

whiskeyblanket
Replies
7
Views
216
Offtopic
whiskeyblanket
whiskeyblanket
S
Replies
1
Views
147
Offtopic
webb&flow
webb&flow
DarkRange55
Replies
18
Views
684
Offtopic
EmptyBottle
EmptyBottle
bakenohana
Replies
10
Views
514
Offtopic
webb&flow
webb&flow
myhoney
Replies
8
Views
266
Offtopic
FoxSauce
FoxSauce