The method {@code nextBytes} is implemented by class {@code Random}as if by:
{@code}public void nextBytes(byte[] bytes) for (int i = 0; i < bytes.length; ) for (int rnd = nextInt(), n = Math.min(bytes.length - i, 4); n-- > 0; rnd >>= 8) bytes[i++] = (byte)rnd; }}@param bytes the byte array to fill with random bytes @throws NullPointerException if the byte array is null @since 1.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|