static <E extends Weighted> RandomSelector<E> weighted(Collection<E> elements) {
        return weighted(elements, Weighted.WEIGHER);
    }
Creates a weighted selector which picks elements according to the value of their {@link Weighted#getWeight()}.

@param elements the elements to pick from
@param <E> the element type
@return the selector instance
helper/src/main/java/me/lucko/helper/random/RandomSelector.java