diff options
Diffstat (limited to 'BJC-Utils2/src/main/java/bjc/utils/funcutils/NumberUtils.java')
| -rw-r--r-- | BJC-Utils2/src/main/java/bjc/utils/funcutils/NumberUtils.java | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/BJC-Utils2/src/main/java/bjc/utils/funcutils/NumberUtils.java b/BJC-Utils2/src/main/java/bjc/utils/funcutils/NumberUtils.java index 24c2014..d3352df 100644 --- a/BJC-Utils2/src/main/java/bjc/utils/funcutils/NumberUtils.java +++ b/BJC-Utils2/src/main/java/bjc/utils/funcutils/NumberUtils.java @@ -13,9 +13,9 @@ public class NumberUtils { * Compute the falling factorial of a number * * @param value - * The number to compute + * The number to compute * @param power - * The power to do the falling factorial for + * The power to do the falling factorial for * @return The falling factorial of the number to the power */ public static int fallingFactorial(int value, int power) { @@ -38,15 +38,14 @@ public class NumberUtils { * Evaluates a linear probability distribution * * @param winning - * The number of winning possibilities + * The number of winning possibilities * @param total - * The number of total possibilities + * The number of total possibilities * @param rng - * The function to use to generate a random possibility + * The function to use to generate a random possibility * @return Whether or not a random possibility was a winning one */ - public static boolean isProbable(int winning, int total, - Function<Integer, Integer> rng) { + public static boolean isProbable(int winning, int total, Function<Integer, Integer> rng) { return rng.apply(total) < winning; } } |
