1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
|
\c\This file was generated using a tool\c\
\h1\random methods\h1\
The following methods are all part of the \b\random methods\b\.
Generate random number from various distribution methods.
\h2\Table of contents\h2\
\ul\
\-\\url #ballrand-function\\b\ballRand\b\ function\url\
\-\\url #circularrand-function\\b\circularRand\b\ function\url\
\-\\url #diskrand-function\\b\diskRand\b\ function\url\
\-\\url #gaussrand-function\\b\gaussRand\b\ function\url\
\-\\url #linearrand-function\\b\linearRand\b\ function\url\
\-\\url #setseed-function\\b\setSeed\b\ function\url\
\-\\url #sphericalrand-function\\b\sphericalRand\b\ function\url\
\ul\
\h3\ballRand() function\h3\
\raw\#### <code>glm.<code>**ballRand**(**Radius**: *float*) -\\> *vec3*</code></code>\raw\
\raw\  \raw\Generate a random 3D vector which coordinates are regulary distributed within the volume of
\raw\  \raw\a ball of a given radius.
\h3\circularRand() function\h3\
\raw\#### <code>glm.<code>**circularRand**(**Radius**: *float*) -\\> *vec2*</code></code>\raw\
\raw\  \raw\Generate a random 2D vector which coordinates are regulary distributed on a circle of a
\raw\  \raw\given radius.
\h3\diskRand() function\h3\
\raw\#### <code>glm.<code>**diskRand**(**Radius**: *float*) -\\> *vec2*</code></code>\raw\
\raw\  \raw\Generate a random 2D vector which coordinates are regulary distributed within the area of
\raw\  \raw\a disk of a given radius.
\h3\gaussRand() function\h3\
\raw\#### <code>glm.<code>**gaussRand**(**Mean**: *float*, **Deviation**: *float*) -\\> *float*</code></code>\raw\
\raw\  \raw\Generate random numbers in the interval \code\[Min, Max]\code\, according a gaussian distribution.
\raw\#### <code>glm.<code>**gaussRand**(**Mean**: *vecN*, **Deviation**: *vecN*) -\\> *vecN*</code></code>\raw\
\raw\  \raw\Generate random numbers in the interval \code\[Min, Max]\code\, according a gaussian distribution.
\h3\linearRand() function\h3\
\raw\#### <code>glm.<code>**linearRand**(**Min**: *float*, **Max**: *float*) -\\> *float*</code></code>\raw\
\raw\  \raw\Generate random numbers in the interval \code\[Min, Max]\code\, according a linear distribution.
\raw\#### <code>glm.<code>**linearRand**(**Min**: *vecN*, **Max**: *vecN*) -\\> *vecN*</code></code>\raw\
\raw\  \raw\Generate random numbers in the interval \code\[Min, Max]\code\, according a linear distribution.
\h3\setSeed() function\h3\
\raw\#### <code>glm.<code>**setSeed**(**seed**: *int*) -\\> *None*</code></code>\raw\
\raw\  \raw\Sets the seed fot the pseudo-random number generator used by the -Rand functions.
\raw\  \raw\The seed needs to be greater or equal to zero.
\raw\  \raw\Default seed is \code\1\code\.
\h3\sphericalRand() function\h3\
\raw\#### <code>glm.<code>**sphericalRand**(**Radius**: *float*) -\\> *vec3*</code></code>\raw\
\raw\  \raw\Generate a random 3D vector which coordinates are regulary distributed on a sphere of a
\raw\  \raw\given radius.
|