Freigeben über


SplittableRandom.NextDouble Method

Definition

Overloads

NextDouble()

Returns a pseudorandom double value between zero (inclusive) and one (exclusive).

NextDouble(Double)

Returns a pseudorandom double value between 0.

NextDouble(Double, Double)

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

NextDouble()

Returns a pseudorandom double value between zero (inclusive) and one (exclusive).

[Android.Runtime.Register("nextDouble", "()D", "", ApiSince=24)]
public double NextDouble ();
[<Android.Runtime.Register("nextDouble", "()D", "", ApiSince=24)>]
member this.NextDouble : unit -> double

Returns

a pseudorandom double value between zero (inclusive) and one (exclusive)

Attributes

Remarks

Returns a pseudorandom double value between zero (inclusive) and one (exclusive).

Java documentation for java.util.SplittableRandom.nextDouble().

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

NextDouble(Double)

Returns a pseudorandom double value between 0.

[Android.Runtime.Register("nextDouble", "(D)D", "", ApiSince=24)]
public double NextDouble (double bound);
[<Android.Runtime.Register("nextDouble", "(D)D", "", ApiSince=24)>]
member this.NextDouble : double -> double

Parameters

bound
Double

the upper bound (exclusive). Must be positive.

Returns

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

Attributes

Remarks

Returns a pseudorandom double value between 0.0 (inclusive) and the specified bound (exclusive).

Java documentation for java.util.SplittableRandom.nextDouble(double).

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

NextDouble(Double, Double)

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

[Android.Runtime.Register("nextDouble", "(DD)D", "", ApiSince=24)]
public double NextDouble (double origin, double bound);
[<Android.Runtime.Register("nextDouble", "(DD)D", "", ApiSince=24)>]
member this.NextDouble : double * double -> double

Parameters

origin
Double

the least value returned

bound
Double

the upper bound (exclusive)

Returns

a pseudorandom double value between the origin (inclusive) and the bound (exclusive)

Attributes

Remarks

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

Java documentation for java.util.SplittableRandom.nextDouble(double, double).

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