Class L64X1024Mix

    • Field Detail

      • la

        protected long la
        Per-instance LCG additive parameter (must be odd). Cannot be final to support RestorableUniformRandomProvider.
      • ls

        protected long ls
        State of the LCG generator.
    • Constructor Detail

      • L64X1024Mix

        public L64X1024Mix​(long[] seed)
        Creates a new instance.
        Parameters:
        seed - Initial seed. If the length is larger than 18, only the first 18 elements will be used; if smaller, the remaining elements will be automatically set. A seed containing all zeros in the last 16 elements will create a non-functional XBG sub-generator and a low quality output with a period of 264.

        The 1st element is used to set the LCG increment; the least significant bit is set to odd to ensure a full period LCG. The 2nd element is used to set the LCG state.

      • L64X1024Mix

        protected L64X1024Mix​(L64X1024Mix source)
        Creates a copy instance.
        Parameters:
        source - Source to copy.