| Modifier and Type | Method and Description |
|---|---|
static <T> @NotNull List<T> |
chooseRandoms(@NotNull List<T> list,
int limit,
boolean duplicate)
chooses objects from the given list with the given limit.
|
public static final Random RANDOM
@NotNull public static <T> @NotNull List<T> chooseRandoms(@NotNull @NotNull List<T> list, int limit, boolean duplicate)
T - the object type.list - the list to choose.limit - the limit to choose.duplicate - the duplicate to check if the object is already in the result list.Copyright © 2021. All rights reserved.