Class ThreadIDRNG

    • Constructor Detail

      • ThreadIDRNG

        public ThreadIDRNG​(int N,
                           long seed)
        Constructs a per-context repeatable RNG.
        Parameters:
        N - the maximum number of threads
        seed - a seed
    • Method Detail

      • setContext

        public void setContext​(long context)
        Sets the context of this thread.
        Parameters:
        context - a context