Class ThreadLocalRandom

java.lang.Object
java.util.Random
java.util.concurrent.ThreadLocalRandom
All Implemented Interfaces:
Serializable, java.util.random.RandomGenerator

public class ThreadLocalRandom extends Random
See Also:
  • Method Details

    • current

      public static ThreadLocalRandom current()
      Returns the current thread's ThreadLocalRandom.
      Returns:
      the current thread's ThreadLocalRandom
    • nextInt

      public int nextInt(int minSize, int maxSize)