Explorar el Código

Detail in spec in IRNG

smelc hace 6 años
padre
commit
73368aad07
Se han modificado 1 ficheros con 7 adiciones y 0 borrados
  1. 7 0
      squidlib-util/src/main/java/squidpony/squidmath/IRNG.java

+ 7 - 0
squidlib-util/src/main/java/squidpony/squidmath/IRNG.java

@@ -20,8 +20,15 @@ public interface IRNG {
 	/**
 	 * Returns a value between min (inclusive) and max (exclusive).
 	 *
+	 * <p>
 	 * The inclusive and exclusive behavior is to match the behavior of the similar
 	 * method that deals with floating point values.
+	 * </p>
+	 * 
+	 * <p>
+	 * If {@code min} and {@code max} happen to be the same, {@code min} is returned
+	 * (breaking the exclusive behavior, but it's convenient to do so).
+	 * </p>
 	 *
 	 * @param min
 	 *            the minimum bound on the return value (inclusive)