Random.NextLong Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the next pseudorandom, uniformly distributed long
value from this random number generator's sequence.
[Android.Runtime.Register("nextLong", "()J", "GetNextLongHandler")]
public virtual long NextLong ();
[<Android.Runtime.Register("nextLong", "()J", "GetNextLongHandler")>]
abstract member NextLong : unit -> int64
override this.NextLong : unit -> int64
Returns
the next pseudorandom, uniformly distributed long
value from this random number generator's sequence
Implements
- Attributes
Remarks
Returns the next pseudorandom, uniformly distributed long
value from this random number generator's sequence. The general contract of nextLong
is that one long
value is pseudorandomly generated and returned.
Java documentation for java.util.Random.nextLong()
.
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.