public interface Random extends NamedResource
BY_NAME_COMPARATOR, NAME_EXTRACTOR| Modifier and Type | Method and Description |
|---|---|
default 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). |
findByName, findFirstMatchByName, getName, getNameList, getNames, ofName, removeByName, safeCompareByNamedefault 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 © 2018–2021 The Apache Software Foundation. All rights reserved.