public static void main(String[] args) {
   int []numbers = {1,2,5,4,3,46,66,36,6};
   Random random = new Random();
   int index = random.nextInt(numbers.length);
   System.out.println(numbers[index]);  
   }
 

  

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-06
  • 2021-12-20
  • 2021-12-26
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-02-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-19
相关资源
相似解决方案