public class SingletonRandomFactory extends AbstractRandom implements RandomFactory
BY_NAME_COMPARATOR, NAME_EXTRACTORFALSE, TRUE| Constructor and Description |
|---|
SingletonRandomFactory(NamedFactory<Random> factory) |
| Modifier and Type | Method and Description |
|---|---|
Random |
create() |
void |
fill(byte[] bytes,
int start,
int len)
Fill part of bytes with random values.
|
String |
getName() |
boolean |
isSupported() |
int |
random(int max)
Returns a pseudo-random uniformly distributed
int in the half-open range [0, n). |
toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitsetUpFactoriescreate, setUpBuiltinFactories, setUpTransformedFactoriesfindByName, getNameList, getNames, ofName, removeByNameall, any, ofpublic SingletonRandomFactory(NamedFactory<Random> factory)
public boolean isSupported()
isSupported in interface OptionalFeaturepublic void fill(byte[] bytes,
int start,
int len)
Randompublic int random(int max)
Randomint in the half-open range [0, n).public String getName()
getName in interface NamedResourceCopyright © 2018–2020 The Apache Software Foundation. All rights reserved.