当前位置:网站首页>【无标题】
【无标题】
2022-06-28 08:31:00 【火创始人】

package com.saint.random;
import java.util.concurrent.ThreadLocalRandom;
/**
* @author Saint
*/
public class ThreadLocalRandomTest {
private static final ThreadLocalRandom RANDOM =
ThreadLocalRandom.current();
public static void main(String[] args) {
for (int i = 0; i < 10; i++) {
new SonThread().start();
}
}
private static class SonThread extends Thread {
@Override
public void run() {
System.out.println(Thread.currentThread().getName() + " obtain random value is : " + RANDOM.nextInt(100));
}
}
}
边栏推荐
- 罗氏线圈可以测量的大电流和频率范围
- 爱分析发布《2022爱分析 · IT运维厂商全景报告》 安超云强势入选!
- Preparation for Oracle 11g RAC deployment on centos7
- A - Bi-shoe and Phi-shoe
- Eslint syntax monitoring off
- Goldbach`s Conjecture
- Solution: selenium common. exceptions. WebDriverException: Message: ‘chromedriver‘ execu
- Introduction, compilation, installation and deployment of Doris learning notes
- 探讨gis三维系统在矿山行业中的应用
- Priority of JS operator
猜你喜欢

webrtc优势与模块拆分

探讨gis三维系统在矿山行业中的应用

2022巴黎时装周儿童单元6.19武汉站圆满落幕

Set the icon for the title section of the page

Children's unit of 2022 Paris fashion week ended successfully at Wuhan station on June 19

Build an integrated kubernetes in Fedora

【学习笔记】最短路 +生成树

Login common test case

Superimposed ladder diagram and line diagram and merged line diagram and needle diagram
![[learning notes] matroid](/img/e3/4e003f5d89752306ea901c70230deb.png)
[learning notes] matroid
随机推荐
Almost Union-Find(带权并查集)
cuda和cudnn和tensorrt的理解
2022第六季完美童模 佛山赛区 初赛圆满落幕
About ASM disk space full, clean up ASM disk
B_ QuRT_ User_ Guide(26)
设置网页的标题部分的图标
设置cmd的编码为utf-8
TCP
【学习笔记】模拟
Superimposed ladder diagram and line diagram and merged line diagram and needle diagram
The preliminary round of the sixth season of 2022 perfect children's model Foshan competition area came to a successful conclusion
The 6th smart home Asia 2022 will be held in Shanghai in October
Cloudcompare & PCL point cloud clipping (based on closed surfaces or polygons)
B_ QuRT_ User_ Guide(29)
nuxt3入门
ffmpeg推流报错Failed to update header with correct duration.
Discussion on the application of GIS 3D system in mining industry
小艺人黄鑫洋受邀参加巴黎时装周儿童单元武汉站
三体攻击(三维拆分加二分)
In flood fighting and disaster relief, the city donated 100000 yuan of love materials to help Yingde