static bool tossCoin() { ret oneIn(2); } static bool tossCoin(Random random) { ret oneIn(2, random); } sbool tossCoin(double probability) { ret randomZeroToOneExclusive() < probability; }