Lottery/Combinations
- Posted by Lutz_Heitmann at NF.MAUS.DE May 05, 2001
- 432 views
-P45311@NF Hello Euphorians, I just found a flaw in my function: LH> c *= (length(set)-x) / x There could be rounding errors, because the division is done before the multiplication. This is better: c = c * (length(set)-x) / x Doesn't look much different, but here the multiplication is done first, and the division will always result in an integer. Lutz.