Class L128X1024Mix

    • Field Detail

      • lah

        protected long lah
        High half of the 128-bit per-instance LCG additive parameter. Cannot be final to support RestorableUniformRandomProvider.
      • lal

        protected long lal
        Low half of the 128-bit per-instance LCG additive parameter (must be odd). Cannot be final to support RestorableUniformRandomProvider.
      • lsh

        protected long lsh
        High half of the 128-bit state of the LCG generator.
      • lsl

        protected long lsl
        Low half of the 128-bit state of the LCG generator.
    • Constructor Detail

      • L128X1024Mix

        public L128X1024Mix​(long[] seed)
        Creates a new instance.
        Parameters:
        seed - Initial seed. If the length is larger than 20, only the first 20 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 2128.

        The 1st and 2nd elements are used to set the LCG increment; the least significant bit is set to odd to ensure a full period LCG. The 3rd and 4th elements are used to set the LCG state.

      • L128X1024Mix

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