Java.Util.Random Members

The members of Java.Util.Random are listed below.

See Also: Inherited members from Java.Lang.Object

Public Constructors

Constructs a random generator with an initial state that is unlikely to be duplicated by a subsequent instantiation.
Construct a random generator with the given seed as the initial state.

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

NextBoolean() : bool
Returns a pseudo-random uniformly distributed boolean.
NextBytes(byte[])
Fills buf with random bytes.
NextDouble() : double
Returns a pseudo-random uniformly distributed double in the half-open range [0.
NextFloat() : float
Returns a pseudo-random uniformly distributed float in the half-open range [0.
NextGaussian() : double
Returns a pseudo-random (approximately) normally distributed double with mean 0.0 and standard deviation 1.
NextInt() : int
Returns a pseudo-random uniformly distributed int.
NextInt(int) : int
Returns a pseudo-random uniformly distributed int in the half-open range [0, n).
NextLong() : long
Returns a pseudo-random uniformly distributed long.
SetSeed(long)
Modifies the seed using a linear congruential formula presented in The Art of Computer Programming, Volume 2, Section 3.

Protected Methods

Next(int) : int
Returns a pseudo-random uniformly distributed int value of the number of bits specified by the argument bits as described by Donald E.