SplittableRandom.NextDouble 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
NextDouble() |
Returns a pseudorandom |
NextDouble(Double) |
Returns a pseudorandom |
NextDouble(Double, Double) |
Returns a pseudorandom |
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.