Class ConcurrentCachedRNG

    • Constructor Detail

      • ConcurrentCachedRNG

        public ConcurrentCachedRNG​(RandomNumberGenerator rng)
        Construct a new instance which wraps the given random number generator and uses a cache which has 8 entries per available core.
        Parameters:
        rng - the underlying generator
    • Method Detail

      • seed

        public void seed​(long... seeds)
        Delegate to the underlying random number generator. Note: this method is NOT thread-safe.
        Specified by:
        seed in interface Seedable
        Parameters:
        seeds - the seeds