mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 06:11:29 +03:00
Added normally distributed generation function to RNG
(cherry picked from commit 5f137925dc)
This commit is contained in:
committed by
Hein-Pieter van Braam-Stewart
parent
ff3987598e
commit
71753edeae
@@ -27,6 +27,17 @@
|
||||
Generates pseudo-random float between [code]from[/code] and [code]to[/code], inclusive.
|
||||
</description>
|
||||
</method>
|
||||
<method name="randfn">
|
||||
<return type="float">
|
||||
</return>
|
||||
<argument index="0" name="mean" type="float" default="0.0">
|
||||
</argument>
|
||||
<argument index="1" name="deviation" type="float" default="1.0">
|
||||
</argument>
|
||||
<description>
|
||||
Generates normally(gaussian) distributed pseudo-random number, using Box-Muller transform with the specified [code]mean[/code] and a standard [code]deviation[/code].
|
||||
</description>
|
||||
</method>
|
||||
<method name="randi">
|
||||
<return type="int">
|
||||
</return>
|
||||
|
||||
Reference in New Issue
Block a user