Initializer
JavaRandomAdapter(Delegate delegate)
Parameters:
  • delegate

    The backing delegate.

Attributes
delegateSource Codeshared Delegate delegate

The backing delegate.

Inherited Attributes
Attributes inherited from: Object
hash, string
Methods
nextBitsSource Codeshared actual Integer nextBits(Integer bits)

Generates an Integer holding bits pseudorandom bits. The returned value will be:

  • equal to 0 for bits <= 0
  • in the range 0..(2^n - 1) for bits in 1..63
  • in the range -2^63..(2^63 - 1) for bits == 64

Note that bits may not be greater than randomLimits.maxBits.

Refines Random.nextBits
Inherited Methods
Methods inherited from: Object
equals
Methods inherited from: Random
bits, booleans, bytes, elements, floats, integers, nextBits, nextBoolean, nextByte, nextElement, nextFloat, nextInteger