| Package | Description |
|---|---|
| me.lucko.helper.random |
| Modifier and Type | Field and Description |
|---|---|
static Weigher<? super Weighted> |
Weighted.WEIGHER
An instance of
Weigher which uses the Weighted.getWeight() method
to determine weight. |
| Modifier and Type | Method and Description |
|---|---|
static <E> RandomSelector<E> |
RandomSelector.weighted(Collection<E> elements,
Weigher<? super E> weigher)
Creates a weighted selector which picks elements using their weight,
according to the weigher function.
|
Copyright © 2020. All rights reserved.