legacy code retreat's triva game : the D version

bearophile bearophileHUGS at lycos.com
Fri Dec 20 08:28:04 PST 2013


marcpmichel:

> Do you mean I should have used :
> if (uniform(0,10) == 7) {
> instead ?

Right. Using % introduces a bias.

Bye,
bearophile


More information about the Digitalmars-d-announce mailing list