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

probability  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
 
Jasmine kaur
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello ,
well there is no such method which has been given in a Math class or package.well try to break this problem and make a methods and use it.
Please do ask further.
thanks
jasmine
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!