Archived

This topic is now archived and is closed to further replies.

Need info on casino (roulette) library/source

This topic is 5400 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Could someone please assist me. I saw an ad for a casino source code library sometime in the last four months. Seem to recall that it was in Dr. Dobbs but can''t seem to find it. Could be just a senior moment on my part! Does anyone know of this or any good roulette code? Thanks Bob R

Share this post


Link to post
Share on other sites

result = rand(38); // number from 1-38

if (result<37) {
// 1-36
black = (result%2==0); // this may be backward is 1 black?
} else if (result==37) {
// 0
} else {
// 00
}


Share this post


Link to post
Share on other sites