Summary
Extensions for
Random.
- Namespace
- StrideToolkit
.Mathematics - Base Types
-
- object
graph BT
Type-->Base0["object"]
Type["RandomExtensions"]
class Type type-node
Syntax
public static class RandomExtensions
Methods
| Name | Value | Summary |
|---|---|---|
| NextColor |
Color |
Generates a random color.
static
|
| NextDirection2D |
Vector2 |
Generates a random normalized 2D direction vector.
static
|
| NextDirection3D |
Vector3 |
Generates a random normalized 3D direction vector.
static
|
| NextPoint |
Vector3 |
Generates a random point in 3D space within the specified region.
static
|
| NextPoint |
Vector2 |
Generates a random point in 2D space within the specified region.
static
|
| NextSingle |
float |
Generates a random
float.
static
|
| PointInACircle |
Vector2 |
Generates a random point in a circle of a given radius.
static
|
