|
static float | Float () |
| Generate a random float between 0 inclusive and 1 exclusive More...
|
|
static float | Float (float max) |
| Generate a random float between 0 inclusive and max exclusive More...
|
|
static float | Float (float min, float max) |
| Generate a random float between min inclusive and max exclusive More...
|
|
static double | Double () |
| Generate a random double between 0 inclusive and 1 exclusive More...
|
|
static double | Double (double max) |
| Generate a double between 0 inclusive and max exclusive More...
|
|
static double | Double (double min, double max) |
| Generate a double between min inclusive and max exclusive More...
|
|
static int | Int () |
| Returns a random integer More...
|
|
static int | Int (int max) |
| Returns a random integer less than max More...
|
|
static int | Int (int min, int max) |
| Returns a random integer greater than min and less than max More...
|
|
static double | Unitd () |
| Returns a random double between 0.0 inclusive, and 1.0 exclusive More...
|
|
static float | Unitf () |
| Return a random float between 0.0 inclusive, and 1.0 exclusive More...
|
|
static double | Dird () |
| Return a double between -1 and 1 More...
|
|
static float | Dirf () |
| Return a float between -1 and 1 More...
|
|
static Vector3d | Dir3d () |
| Return a normalized random vector More...
|
|
static Vector3d | Dirz3d () |
| Return a normalized vector masked with (1,1,0) More...
|
|
static Vector3 | Dir3f () |
| Return a normalized random vector More...
|
|
static Vector3 | Dirz3f () |
| Return a normal vector masked with (1,1,0) More...
|
|
static Vector3 | Vec3f (float min, float max) |
| Create a vector where each component is between min and max More...
|
|
static Vector3d | Vec3d (double min, double max) |
| Create a vector where each component is between min and max More...
|
|
static bool | Chance (double likelihood) |
| Returns true if a random number falls below a likelihood More...
|
|
static T | PickRandom< T > (this IEnumerable< T > items) |
| Pick an item randomly from a list More...
|
|
static T | PickRandom< T > (this IList< T > items) |
| Pick an item randomly from a list More...
|
|
static T | PickRandomOrNull< T > (this IEnumerable< T > items) |
| Pick an item randomly from a list More...
|
|
static T | PickRandomOrNull< T > (this IList< T > items) |
| Pick an item randomly from a list More...
|
|
Convenience methods for random number generation
Attribute: ThreadSafe