Class ThreadLocalRandom

java.lang.Object
com.unboundid.util.ThreadLocalRandom

This class provides a means of obtaining a thread-local random number generator that can be used by the current thread without the need for synchronization.
  • Method Details

    • get

      @NotNull public static Random get()
      Gets a thread-local random number generator instance.
      Returns:
      A thread-local random number generator instance.