@Test
public void aaa(){ String[] sbNo = new String[]{"asd","asd","asd","asd","asd","asd","asd","asd","asd","asd","asd","asd"};
int r = -1; for (int i = 0; i < 100; i++) {
//1 多线程环境
//r = ThreadLocalRandom.current().nextInt(sbNo.length) % sbNo.length; //2 普通的
Random random = new Random();
r = random.nextInt(sbNo.length); System.out.println(r);
}
}

最新文章

  1. Extjs 使用图标字体来美化按钮)
  2. System类及其常用函数
  3. ROR 环境的 搭建
  4. 【Swift】—— 中国课程
  5. node 和git 在linux(centos) 上的安装
  6. tp5命名空间
  7. python_如何设置文件缓冲类型
  8. Jms的MessageListener中的Jms事务
  9. 一种使用 emwin 绘制图片的方法
  10. select 不要 用*
  11. Maven Web项目部署到Tomcat下问题
  12. 取消开机logo,改成代码刷屏
  13. Jmeter Ant Task如何让beanshell断言失败的详细信息展示在report里面
  14. Chain&#160;of&#160;Responsibility 责任链模式 MD
  15. informatica 中的workflow连接mysql数据配置DSN
  16. 【Linux】Linux文件跟目录管理
  17. BarcodeLib -- 一个精简而不失优雅的条形码生成库
  18. Windows安装mysql8.0
  19. AspNet5 Changes to [Activate] in beta-5
  20. 福大软工1816:Alpha(2/10)

热门文章

  1. Kubernetes--管理Pod对象的容器(3)
  2. vue2中底层响应式数据实现
  3. XMind8破解,详细版(亲测)
  4. SAP SD VA01 销售订单中的自动价格更新
  5. tool script to convert back slash
  6. docker 安装portainer容器后,启动/Portainer 安装MySQL并开启远程访问
  7. 戴尔n4110的独显驱动黄色感叹号问题的解决方法
  8. NTP Mode 6 检测漏洞【原理扫描】
  9. 询问chatGPT的一些问题
  10. java后端JVM面试资料