-
- All Implemented Interfaces:
public class DiceManage random things.
-
-
Method Summary
Modifier and Type Method Description final <T extends Any> Tchoose(List<T> list)Choose randomly an item in a list. final Integerindex(Collection<?> col)Return a random index in a Collection. final IntegernewInt(Integer max)Return a random int between 0 and max (excluded). final StringnewId()Return a new random Id. -
-
Method Detail
-
index
final Integer index(Collection<?> col)
Return a random index in a Collection.
-
-
-
-