package cn.edu.tju;
import java.util.concurrent.ThreadLocalRandom;
public class ThreadLocalRandomTest {
public static void main(String[] args) {
ThreadLocalRandom threadLocalRandom=ThreadLocalRandom.current();
System.out.println(threadLocalRandom.nextInt(100));
}
}
java:ThreadLocalRandom的用法
最新推荐文章于 2024-05-30 10:05:52 发布