RandomExtensions Class

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(Random) Color
Generates a random color.
static
NextDirection2D(Random) Vector2
Generates a random normalized 2D direction vector.
static
NextDirection3D(Random) Vector3
Generates a random normalized 3D direction vector.
static
NextPoint(Random, BoundingBox) Vector3
Generates a random point in 3D space within the specified region.
static
NextPoint(Random, RectangleF) Vector2
Generates a random point in 2D space within the specified region.
static
NextSingle(Random) float
Generates a random float.
static
PointInACircle(Random, float) Vector2
Generates a random point in a circle of a given radius.
static