gaussian
Generates a random number following a Gaussian (normal) distribution.
Return
A random number sampled from the specified Gaussian distribution.
Parameters
The mean of the Gaussian distribution. Defaults to 0.0.
The standard deviation of the Gaussian distribution. Defaults to 1.0.
The random number generator to use. Defaults to Random.Default.
Generates a random 2D vector with components sampled from independent Gaussian (normal) distributions.
Return
A 2D vector with components sampled from their respective Gaussian distributions.
Parameters
The mean vector of the Gaussian distributions for the x and y components. Defaults to Vector2.ZERO.
The standard deviation vector of the Gaussian distributions for the x and y components. Defaults to Vector2.ONE.
The random number generator to use. Defaults to Random.Default.
Generates a random Vector3 following a Gaussian (normal) distribution.
Return
A random Vector3 sampled from the specified Gaussian distribution.
Parameters
The mean vector for the Gaussian distribution. Defaults to Vector3.ZERO.
The standard deviation vector for the Gaussian distribution. Defaults to Vector3.ONE.
The random number generator to use. Defaults to Random.Default.
Generates a random Vector4
where each component is sampled independently from a Gaussian (normal) distribution.
Return
A Vector4
where each component is a random number sampled from the specified Gaussian distribution.
Parameters
A Vector4
representing the mean of the distribution for each component. Defaults to Vector4.ZERO
.
A Vector4
representing the standard deviation of the distribution for each component. Defaults to Vector4.ONE
.
The random number generator to use. Defaults to Random.Default
.