Interface Random

    • Method Detail

      • fill

        default void fill​(byte[] bytes)
        Fill the buffer with random values
        Parameters:
        bytes - The bytes to fill
        See Also:
        fill(byte[], int, int)
      • fill

        void fill​(byte[] bytes,
                  int start,
                  int len)
        Fill part of bytes with random values.
        Parameters:
        bytes - byte array to be filled.
        start - index to start filling at.
        len - length of segment to fill.
      • random

        int random​(int n)
        Returns a pseudo-random uniformly distributed int in the half-open range [0, n).
        Parameters:
        n - The range upper limit
        Returns:
        The randomly selected value in the range