RandomUtil.randomEle
随机获得列表中的元素
importcn.hutool.core.util.RandomUtil; publicclassTest { publicstaticvoidmain(String[] args) { Integer[] a= {1, 2, 3, 4, 5}; System.out.println(RandomUtil.randomEle(a)); } }
RandomUtil.randomEle
随机获得列表中的元素importcn.hutool.core.util.RandomUtil; publicclassTest { publicstaticvoidmain(String[] args) { Integer[] a= {1, 2, 3, 4, 5}; System.out.println(RandomUtil.randomEle(a)); } }