Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

probabilty  RSS feed

 
Micheal jayawardane
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

probabilty
 
Chris Shepherd
Ranch Hand
Posts: 286
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!