static Pair> getRandomPercent2(L l, double percent) { ret selectRandom2(l, max(0, min(l(l), iround(percent/100*l(l))))); }