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