IRandomGenerator.NextGaussian 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
NextGaussian() |
Returns a |
NextGaussian(Double, Double) |
Returns a |
NextGaussian()
Returns a double
value pseudorandomly chosen from a Gaussian
(normal) distribution whose mean is 0 and whose standard deviation is 1.
[Android.Runtime.Register("nextGaussian", "()D", "GetNextGaussianHandler:Java.Util.RandomGenerators.IRandomGenerator, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=35)]
public virtual double NextGaussian ();
[<Android.Runtime.Register("nextGaussian", "()D", "GetNextGaussianHandler:Java.Util.RandomGenerators.IRandomGenerator, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=35)>]
abstract member NextGaussian : unit -> double
override this.NextGaussian : unit -> double
Returns
a double
value pseudorandomly chosen from a
Gaussian distribution
- Attributes
Remarks
Returns a double
value pseudorandomly chosen from a Gaussian (normal) distribution whose mean is 0 and whose standard deviation is 1.
Java documentation for java.util.random.RandomGenerator.nextGaussian()
.
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
NextGaussian(Double, Double)
Returns a double
value pseudorandomly chosen from a Gaussian
(normal) distribution with a mean and standard deviation specified by the
arguments.
[Android.Runtime.Register("nextGaussian", "(DD)D", "GetNextGaussian_DDHandler:Java.Util.RandomGenerators.IRandomGenerator, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=35)]
public virtual double NextGaussian (double mean, double stddev);
[<Android.Runtime.Register("nextGaussian", "(DD)D", "GetNextGaussian_DDHandler:Java.Util.RandomGenerators.IRandomGenerator, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=35)>]
abstract member NextGaussian : double * double -> double
override this.NextGaussian : double * double -> double
Parameters
- mean
- Double
the mean of the Gaussian distribution to be drawn from
- stddev
- Double
the standard deviation (square root of the variance) of the Gaussian distribution to be drawn from
Returns
a double
value pseudorandomly chosen from the
specified Gaussian distribution
- Attributes
Remarks
Returns a double
value pseudorandomly chosen from a Gaussian (normal) distribution with a mean and standard deviation specified by the arguments.
Java documentation for java.util.random.RandomGenerator.nextGaussian(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.