次の方法で共有


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

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

Attributes

Remarks

Generates an integer containing the user-specified number of pseudo-random bits (right justified, with leading zeros). This method overrides a java.util.Random method, and serves to provide a source of random bits to all of the methods inherited from that class (for example, nextInt, nextLong, and nextFloat).

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