View on GitHub

programming-study

허원철의 개발 블로그

Random Class

https://www.logicbig.com/how-to/java-random/different-random-classes.html

java.util.Random

new Random().nextInt(100);

java.security.SecureRandom

new SecureRandom().nextInt(100);

java.util.concurrent.ThreadLocalRandom

ThreadLocalRandom.current().nextInt(0, 100);

java.util.SplittableRandom

new SplittableRandom().nextInt(0, 100);