mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-14 07:55:57 +01:00
Add reliquary decomposition (aka strongbox).
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user