I need to write a Java program that uses a Monte Carlo algorithm to calculate the
probability that next week’s lottery draw won’t have any consecutive
pairs of numbers (e.g. 8 and 9 or 22 and 23). 6 numbers are drawn
from 1 to 45.

mickdrealist
Recommended Answers
Jump to PostAnd your point is? If you need help with anything, post what you have so far.
Just to be clear: when I say "what you have so far", in case you missunderstood it, I didn't mean "post your assignment and we'll do it for you."The rules of Daniweb demand …
Jump to PostYou will need a bunch of random numbers since its a lottery. Not numbers from 1 to 7.
(S)he's not generating number 1-7 this is merely where he is going to store the seven numbers picked.
As I said before shuffling the 1-49 in an array and picking …
All 12 Replies
stultuske 1,116 Posting Maven Featured Poster
JamesCherrill 4,733 Most Valuable Poster Team Colleague Featured Poster

mickdrealist

mickdrealist

mickdrealist

iamthwee
newcoder310 0 Junior Poster in Training
newcoder310 0 Junior Poster in Training
newcoder310 0 Junior Poster in Training
stultuske 1,116 Posting Maven Featured Poster
newcoder310 0 Junior Poster in Training

iamthwee
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.