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 55 56
|
[//]: # (generated using SlashBack 0.2.0)
# random methods
The following methods are all part of the **random methods**\.
Generate random number from various distribution methods\.
## Table of contents
* [**ballRand** function](#ballrand-function)
* [**circularRand** function](#circularrand-function)
* [**diskRand** function](#diskrand-function)
* [**gaussRand** function](#gaussrand-function)
* [**linearRand** function](#linearrand-function)
* [**setSeed** function](#setseed-function)
* [**sphericalRand** function](#sphericalrand-function)
### ballRand\(\) function
#### <code>glm.<code>**ballRand**(**Radius**: *float*) -\> *vec3*</code></code>
  Generate a random 3D vector which coordinates are regulary distributed within the volume of
  a ball of a given radius\.
### circularRand\(\) function
#### <code>glm.<code>**circularRand**(**Radius**: *float*) -\> *vec2*</code></code>
  Generate a random 2D vector which coordinates are regulary distributed on a circle of a
  given radius\.
### diskRand\(\) function
#### <code>glm.<code>**diskRand**(**Radius**: *float*) -\> *vec2*</code></code>
  Generate a random 2D vector which coordinates are regulary distributed within the area of
  a disk of a given radius\.
### gaussRand\(\) function
#### <code>glm.<code>**gaussRand**(**Mean**: *float*, **Deviation**: *float*) -\> *float*</code></code>
  Generate random numbers in the interval ``` [Min, Max] ```, according a gaussian distribution\.
#### <code>glm.<code>**gaussRand**(**Mean**: *vecN*, **Deviation**: *vecN*) -\> *vecN*</code></code>
  Generate random numbers in the interval ``` [Min, Max] ```, according a gaussian distribution\.
### linearRand\(\) function
#### <code>glm.<code>**linearRand**(**Min**: *float*, **Max**: *float*) -\> *float*</code></code>
  Generate random numbers in the interval ``` [Min, Max] ```, according a linear distribution\.
#### <code>glm.<code>**linearRand**(**Min**: *vecN*, **Max**: *vecN*) -\> *vecN*</code></code>
  Generate random numbers in the interval ``` [Min, Max] ```, according a linear distribution\.
### setSeed\(\) function
#### <code>glm.<code>**setSeed**(**seed**: *int*) -\> *None*</code></code>
  Sets the seed fot the pseudo\-random number generator used by the \-Rand functions\.
  The seed needs to be greater or equal to zero\.
  Default seed is ``` 1 ```\.
### sphericalRand\(\) function
#### <code>glm.<code>**sphericalRand**(**Radius**: *float*) -\> *vec3*</code></code>
  Generate a random 3D vector which coordinates are regulary distributed on a sphere of a
  given radius\.
|