Next: , Up: Random Numbers


10.1 The IRandom Interface

— Function: void init (java.util.Map attributes)

Initializes this PRNG, preparing it for use. Throws an IllegalArgumentException if the given attributes are not appropriate for this PRNG algorithm.

— Function: byte nextByte () throws LimitReachedException

Returns the next pseudo-random byte in this generator's sequence. Throws a LimitReachedException if this generator cannot produce any more bytes of any quality.

— Function: void nextBytes (byte[] out, int off, int len) throws LimitReachedException

Fills the buffer out with the next len bytes in this generator's sequence, storing the bytes beginning at off. Throws a LimitReachedException if this generator cannot produce any more bytes of any quality.

— Function: java.lang.String name ()

Returns the canonical name of this PRNG algorithm.

— Function: java.lang.Object clone ()

Returns a copy of this instance. The copy will be in the exact same state as this instance, and will be independent of this instance.