From 27bf571d6413c3cc6a5d664b5bddd38d21d7b1cd Mon Sep 17 00:00:00 2001 From: EVE Date: Mon, 13 Mar 2017 16:42:21 -0400 Subject: Formatting --- .../src/main/java/bjc/utils/funcutils/NumberUtils.java | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'BJC-Utils2/src/main/java/bjc/utils/funcutils/NumberUtils.java') 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 rng) { + public static boolean isProbable(int winning, int total, Function rng) { return rng.apply(total) < winning; } } -- cgit v1.2.3