Freigeben über


SplittableRandom.NextLong Method

Definition

Overloads

NextLong()

Returns a pseudorandom long value.

NextLong(Int64)

Returns a pseudorandom long value between zero (inclusive) and the specified bound (exclusive).

NextLong(Int64, Int64)

Returns a pseudorandom long value between the specified origin (inclusive) and the specified bound (exclusive).

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

Returns

a pseudorandom long value

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

Parameters

bound
Int64

the upper bound (exclusive). Must be positive.

Returns

a pseudorandom long value between zero (inclusive) and the bound (exclusive)

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

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)

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.

Applies to