Exemple #1
0
 public static Roller Taper(int chance, int outOf)
 {
     return(new Roller(
                () => Rng.Taper(0, 1, chance, outOf),
                (float)chance / (outOf - (float)chance), // sum of geometric series
                "(" + chance + ":" + outOf + ")"));
 }