Class SingletonRandomFactory

    • Constructor Detail

    • Method Detail

      • fill

        public void fill​(byte[] bytes,
                         int start,
                         int len)
        Description copied from interface: Random
        Fill part of bytes with random values.
        Specified by:
        fill in interface Random
        Parameters:
        bytes - byte array to be filled.
        start - index to start filling at.
        len - length of segment to fill.
      • random

        public int random​(int max)
        Description copied from interface: Random
        Returns a pseudo-random uniformly distributed int in the half-open range [0, n).
        Specified by:
        random in interface Random
        Parameters:
        max - The range upper limit
        Returns:
        The randomly selected value in the range