Class JenkinsSmallFast32

    • Field Detail

      • a

        private int a
        State a.
      • b

        private int b
        State b.
      • c

        private int c
        State c.
      • d

        private int d
        Statd d.
    • Constructor Detail

      • JenkinsSmallFast32

        public JenkinsSmallFast32​(java.lang.Integer seed)
        Creates an instance with the given seed.
        Parameters:
        seed - Initial seed.
    • Method Detail

      • setSeedInternal

        private void setSeedInternal​(int seed)
        Seeds the RNG.
        Parameters:
        seed - Seed.
      • next

        public final int next()
        Return the next random value.
        Returns:
        the next random value.
      • getStateInternal

        protected byte[] getStateInternal()
        Creates a snapshot of the RNG state.
        Overrides:
        getStateInternal in class IntProvider
        Returns:
        the internal state.