public interface Random extends NamedResource
NamedResource.Utils
BY_NAME_COMPARATOR, NAME_EXTRACTOR
Modifier and Type | Method and Description |
---|---|
void |
fill(byte[] bytes)
Fill the buffer with random values
|
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). |
getName
void fill(byte[] bytes)
bytes
- The bytes to fillfill(byte[], int, int)
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).n
- The range upper limitCopyright © 2008–2016 The Apache Software Foundation. All rights reserved.