java 从List中随机取出一个元素

  List<Integer> list = new ArrayList<>();
Random random = new Random();
int n = random.nextInt(list.size());
list.get(n);
04-21 08:59