uniformRing
Generates a random 2D vector uniformly distributed within a ring defined by the inner and outer radii.
Return
A 2D vector uniformly distributed within the specified ring.
Parameters
The inner radius of the ring. Must be less than or equal to outerRadius. Default is 0.0.
The outer radius of the ring. Default is 1.0.
The random number generator to use. Default is Random.Default.
Throws
If innerRadius is greater than outerRadius.
Generates a random 3D vector within a uniform ring defined by the provided inner and outer radii. The ring resides in a 3D space, and vectors are uniformly distributed within the specified range.
Return
A random 3D vector within the specified uniform ring.
Parameters
The inner radius of the ring. Default is 0.0.
The outer radius of the ring. Default is 1.0.
The random number generator to be used for generating the vector. Default is Random.Default.
Generates a uniformly distributed random 4D vector within a ring-shaped area defined by an inner and outer radius.
Return
A random 4D vector within the specified ring.
Parameters
The minimum radius of the ring. Defaults to 0.0.
The maximum radius of the ring. Defaults to 1.0.
An instance of Random used to generate the random vector. Defaults to Random.Default.