|
Nebula
|
Static Public Member Functions | |
| static void | Seed (ulong seed) |
| Select a specific seed for the RNG. | |
| static void | RandomizeSeed () |
| Randomize the seed for the RNG. | |
| static float | Range (float min, float max) |
| Random float in [min, max). | |
| static int | Range (int min, int max) |
| Random integer in [min, max). | |
| static Vector3 | InUnitSphere () |
| Random vector3 point inside unit sphere. | |
| static float | Smooth (float seed) |
| Returns a smooth "random" number based on seed. | |
Properties | |
| static float | Value [get] |
| Random float in [0, 1). | |
Static Private Member Functions | |
| static uint | Next () |
| static uint | RotateLeft (uint x, int k) |
Static Private Attributes | |
| static uint | s0 = 0xA3C59AC3u |
| static uint | s1 = 0x3C6EF372u |
| static uint | s2 = 0xDAA66D2Bu |
| static uint | s3 = 0x78DDE6E4u |
|
inlinestatic |
Random vector3 point inside unit sphere.
Note that this produces a non uniform distribution.
|
inlinestaticprivate |
|
inlinestatic |
Randomize the seed for the RNG.
|
inlinestatic |
Random float in [min, max).
|
inlinestatic |
Random integer in [min, max).
|
inlinestatic |
Select a specific seed for the RNG.
|
inlinestatic |
Returns a smooth "random" number based on seed.
Random value will be between approximately -1.0f and 1.0f (not exact!). If seed is increased, the random number will smoothly "slide" towards a new "point".
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticget |
Random float in [0, 1).