Add reliquary decomposition (aka strongbox).

This commit is contained in:
GanyusLeftHorn
2022-07-06 00:19:22 -07:00
committed by Melledy
parent 952448220d
commit 6338c17189
7 changed files with 170 additions and 0 deletions

View File

@@ -399,4 +399,13 @@ public final class Utils {
// Should never happen.
return list.get(0);
}
/***
* Draws a random element from the given list, following a uniform probability distribution.
* @param list The list from which to draw the element.
* @return A randomly drawn element from the given list.
*/
public static <T> T drawRandomListElement(List<T> list) {
return drawRandomListElement(list, null);
}
}