Random.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.
Returns the next pseudorandom, Gaussian ("normally") distributed
double
value with mean 0.0
and standard
deviation 1.0
from this random number generator's sequence.
[Android.Runtime.Register("nextGaussian", "()D", "GetNextGaussianHandler")]
public virtual double NextGaussian ();
[<Android.Runtime.Register("nextGaussian", "()D", "GetNextGaussianHandler")>]
abstract member NextGaussian : unit -> double
override this.NextGaussian : unit -> double
Returns
the next pseudorandom, Gaussian ("normally") distributed
double
value with mean 0.0
and
standard deviation 1.0
from this random number
generator's sequence
Implements
- Attributes
Remarks
Returns the next pseudorandom, Gaussian ("normally") distributed double
value with mean 0.0
and standard deviation 1.0
from this random number generator's sequence.
The general contract of nextGaussian
is that one double
value, chosen from (approximately) the usual normal distribution with mean 0.0
and standard deviation 1.0
, is pseudorandomly generated and returned.
Java documentation for java.util.Random.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.