class ArrayWeightRandomProcessor<T> implements WeightRandomProcessor<T> {
    @Override
    public T random(List<Pair<T, Integer>> weightList) {<FILL_FUNCTION_BODY>}
}

        if (CollectionUtils.isEmpty(weightList)) {
            return null;
        }

        ArrayWeightRandom<T, Integer> weightRandom = new ArrayWeightRandom<T, Integer>(weightList);

        return weightRandom.random();
    
<no_super_class>