summaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorChaosus <chaosus89@gmail.com>2019-03-14 13:53:08 +0300
committerChaosus <chaosus89@gmail.com>2019-03-17 08:09:46 +0300
commit5f137925dccd8a7facc34d05d2652af6d03285ba (patch)
tree7e8b1fb7142f0edf9907583394139700e3493223 /doc/classes
parent775e74e0d41daa9cf3679c2e215f4ef46eee9cbc (diff)
Added normally distributed generation function to RNG
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/RandomNumberGenerator.xml11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/classes/RandomNumberGenerator.xml b/doc/classes/RandomNumberGenerator.xml
index fff13402f1..26003e0b75 100644
--- a/doc/classes/RandomNumberGenerator.xml
+++ b/doc/classes/RandomNumberGenerator.xml
@@ -28,6 +28,17 @@
Generates pseudo-random float between [code]from[/code] and [code]to[/code].
</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>