Click or drag to resize

RandomNumberGeneratorRandfn Method

Generates a normally-distributed pseudo-random number, using Box-Muller transform with the specified mean and a standard deviation. This is also called Gaussian distribution.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public float Randfn(
	float mean = 0f,
	float deviation = 1f
)

Parameters

mean (Optional)
Type: SystemSingle

[Missing <param name="mean"/> documentation for "M:Godot.RandomNumberGenerator.Randfn(System.Single,System.Single)"]

deviation (Optional)
Type: SystemSingle

[Missing <param name="deviation"/> documentation for "M:Godot.RandomNumberGenerator.Randfn(System.Single,System.Single)"]

Return Value

Type: Single

[Missing <returns> documentation for "M:Godot.RandomNumberGenerator.Randfn(System.Single,System.Single)"]

See Also