SplittableRandom.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.
Overloads
| NextLong() | 
						 Returns a pseudorandom   | 
        	
| NextLong(Int64) | 
						 Returns a pseudorandom   | 
        	
| NextLong(Int64, Int64) | 
						 Returns a pseudorandom   | 
        	
NextLong()
Returns a pseudorandom long value.
[Android.Runtime.Register("nextLong", "()J", "", ApiSince=24)]
public long NextLong();
	[<Android.Runtime.Register("nextLong", "()J", "", ApiSince=24)>]
member this.NextLong : unit -> int64
	[<Android.Runtime.Register("nextLong", "()J", "", ApiSince=24)>]
abstract member NextLong : unit -> int64
override this.NextLong : unit -> int64
	Returns
a pseudorandom long value
Implements
- Attributes
 
Remarks
Returns a pseudorandom long value.
Java documentation for java.util.SplittableRandom.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.
Applies to
NextLong(Int64)
Returns a pseudorandom long value between zero (inclusive)
and the specified bound (exclusive).
[Android.Runtime.Register("nextLong", "(J)J", "", ApiSince=24)]
public long NextLong(long bound);
	[<Android.Runtime.Register("nextLong", "(J)J", "", ApiSince=24)>]
member this.NextLong : int64 -> int64
	[<Android.Runtime.Register("nextLong", "(J)J", "", ApiSince=24)>]
abstract member NextLong : int64 -> int64
override this.NextLong : int64 -> int64
	Parameters
- bound
 - Int64
 
the upper bound (exclusive). Must be positive.
Returns
a pseudorandom long value between zero
(inclusive) and the bound (exclusive)
Implements
- Attributes
 
Remarks
Returns a pseudorandom long value between zero (inclusive) and the specified bound (exclusive).
Java documentation for java.util.SplittableRandom.nextLong(long).
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
NextLong(Int64, Int64)
Returns a pseudorandom long value between the specified
origin (inclusive) and the specified bound (exclusive).
[Android.Runtime.Register("nextLong", "(JJ)J", "", ApiSince=24)]
public long NextLong(long origin, long bound);
	[<Android.Runtime.Register("nextLong", "(JJ)J", "", ApiSince=24)>]
member this.NextLong : int64 * int64 -> int64
	[<Android.Runtime.Register("nextLong", "(JJ)J", "", ApiSince=24)>]
abstract member NextLong : int64 * int64 -> int64
override this.NextLong : int64 * int64 -> int64
	Parameters
- origin
 - Int64
 
the least value returned
- bound
 - Int64
 
the upper bound (exclusive)
Returns
a pseudorandom long value between the origin
(inclusive) and the bound (exclusive)
Implements
- Attributes
 
Remarks
Returns a pseudorandom long value between the specified origin (inclusive) and the specified bound (exclusive).
Java documentation for java.util.SplittableRandom.nextLong(long, long).
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.