SecureRandom.Next(Int32) Method

Definition

Generates an integer containing the user-specified number of pseudo-random bits (right justified, with leading zeros).

[Android.Runtime.Register("next", "(I)I", "")]
protected override sealed int Next (int numBits);
[<Android.Runtime.Register("next", "(I)I", "")>]
override this.Next : int -> int

Parameters

numBits
Int32

number of pseudo-random bits to be generated, where 0 <= numBits <= 32.

Returns

Int32

an int containing the user-specified number of pseudo-random bits (right justified, with leading zeros).

Attributes

Remarks

Java documentation for java.security.SecureRandom.next(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to