# probabilty

Micheal jayawardane

Greenhorn

Posts: 3

posted 12 years ago

can anybody please tell me whether any probabilty calculation could be done using the java Math class.

e.g:- how do you simulate the possibilties of a ships arrival at a dock yard, which has a 2/10 chance of landing durring the first hour since commencement. 5/40 chance of landing durring the second hour since commencement and 2/20 at the third hour since commencement.

Or else could using threads do the same thing specified.

Thankyou.

e.g:- how do you simulate the possibilties of a ships arrival at a dock yard, which has a 2/10 chance of landing durring the first hour since commencement. 5/40 chance of landing durring the second hour since commencement and 2/20 at the third hour since commencement.

Or else could using threads do the same thing specified.

Thankyou.

**probabilty**
Chris Shepherd

Ranch Hand

Posts: 286

posted 12 years ago

uhm I would think you could do just about any thing with the Math class. Show us the calculations you have and I bet we can help you figure out the code to imitate the math.

Chris

1/20 - my estimate of the probability of you getting an answer to homework given to you here so you don't have to figure it out yourself.

[ January 22, 2004: Message edited by: Chris Shepherd ]

Chris

1/20 - my estimate of the probability of you getting an answer to homework given to you here so you don't have to figure it out yourself.

[ January 22, 2004: Message edited by: Chris Shepherd ]