Archived

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

Robert Rosenthal

Need info on casino (roulette) library/source

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