diff options
| author | EVE <EVE@EVE-PC> | 2017-03-13 16:42:21 -0400 |
|---|---|---|
| committer | EVE <EVE@EVE-PC> | 2017-03-13 16:42:21 -0400 |
| commit | 27bf571d6413c3cc6a5d664b5bddd38d21d7b1cd (patch) | |
| tree | 847fb52acb091c1c613d37b8477094d5762c6988 /BJC-Utils2/src/main/java/bjc/utils/funcutils/NumberUtils.java | |
| parent | aa807a96cae2c47259fb38f710640883060339e9 (diff) | |
Formatting
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; } } |
