다음을 통해 공유


IRandomGenerator.NextGaussian Method

Definition

Overloads

NextGaussian()

Returns a double value pseudorandomly chosen from a Gaussian (normal) distribution whose mean is 0 and whose standard deviation is 1.

NextGaussian(Double, Double)

Returns a double value pseudorandomly chosen from a Gaussian (normal) distribution with a mean and standard deviation specified by the arguments.

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.

Applies to