public interface Random
Modifier and Type | Method and Description |
---|---|
void |
fill(byte[] bytes,
int start,
int len)
Fill part of bytes with random values.
|
int |
random(int n)
Returns a pseudo-random uniformly distributed
int
in the half-open range [0, n). |
void fill(byte[] bytes, int start, int len)
bytes
- byte array to be filled.start
- index to start filling at.len
- length of segment to fill.int random(int n)
int
in the half-open range [0, n).Copyright © 2008–2016 The Apache Software Foundation. All rights reserved.