#include <random.h>
Public Member Functions | |
| Random (long s=0) | |
| void | seed (long s) |
| DBL | getDouble () |
| DBL | jitterFactor (DBL amouth) |
| Vector3 | pointInBox () |
| Vector3 | pointInSphere () |
| Vector3 | direction () |
Static Public Attributes | |
| Random | global = Random(234234324) |
|
|
Returns random unit vector. (uniform distributed) |
|
|
Get next random double value in interval [0,1[ |
|
|
Get factor in the range [1-amouth,1+amouth] |
|
|
Returns random point in box from <-1,-1,-1> to <1,1,1>. |
|
|
Returns random point in a unit sphere. (uniform distributed) |
1.3.8