Package jadex.common

Class FastThreadedRandom

java.lang.Object
java.util.Random
jadex.common.FastThreadedRandom
All Implemented Interfaces:
Serializable, RandomGenerator

public class FastThreadedRandom extends Random
Wrapper for quick multi-threaded PRNG access using multiple PRNGs.
See Also:
  • Field Details

    • prngs

      protected Random[] prngs
      The random number generators.
    • threadingmask

      protected int threadingmask
      Mask for distributing threads.
  • Constructor Details

    • FastThreadedRandom

      public FastThreadedRandom()
      Creates the wrapper.
    • FastThreadedRandom

      public FastThreadedRandom(Class<?> randomclazz)
      Creates the wrapper.
    • FastThreadedRandom

      public FastThreadedRandom(Class<?> randomclazz, int threadinglevel)
      Creates the wrapper.
  • Method Details