Random numbers
Common
Math.random
java.util.Random
ThreadLocalRandom
backed by Random class
Seed Value
this is used to generate a predicatable set of numbers for the random generators
Non predicatable
should use for cryptographic use cases ie passwords
java.security.SecureRandom
Links
https://www.happycoders.eu/java/random-number/
Last updated
Was this helpful?