uniform
Generates a list of uniformly distributed points within the shape provided by the ShapeProvider.
Return
A list of Vector2 objects representing the uniformly distributed points.
Parameters
The number of points to generate.
An optional random number generator to influence the distribution.
Generates a uniformly distributed random integer within the specified range.
Return
A random integer value within the range [min, max).
Parameters
The lower bound of the range (inclusive). Default is -1.
The upper bound of the range (exclusive). Default is 2.
An instance of Random to generate the random value. Default is Random.Default.
Generates a random double value within the specified range min, max.
Return
A randomly generated double value between min, max.
Parameters
The minimum value of the range (inclusive). Defaults to -1.0.
The maximum value of the range (exclusive). Defaults to 1.0.
The random number generator to use. Defaults to Random.Default.
Generates a random 2D vector with each component uniformly distributed within the specified ranges.
Return
A randomly generated Vector2 object with components within [min.x, max.x) and [min.y, max.y).
Parameters
The minimum values for the x and y components of the vector (inclusive). Defaults to Vector2(-1, -1).
The maximum values for the x and y components of the vector (exclusive). Defaults to Vector2(1, 1).
The random number generator to use. Defaults to Random.Default.
Generates a random 2D vector with components uniformly distributed within the specified range.
Return
A randomly generated Vector2 object with both x and y components within the range [min, max).
Parameters
The minimum value for both x and y components of the vector (inclusive). Default is -1.0.
The maximum value for both x and y components of the vector (exclusive). Default is 1.0.
The random number generator to use. Default is Random.Default.
Generates a random 2D vector uniformly distributed within the specified rectangular bounds.
Return
A randomly generated Vector2 object with components within the bounds of the specified rectangle.
Parameters
The rectangle within which the vector's components will be randomly generated.
The random number generator to use. Defaults to Random.Default.
Generates a random IntVector2
with each component within the specified ranges.
Parameters
The minimum values for the x and y components of the vector. Default is IntVector2(-1, -1)
.
The maximum exclusive values for the x and y components of the vector. Default is IntVector2(2, 2)
.
The random number generator used to generate the values. Default is Random.Default
.
Generates a uniform random IntVector2
within the specified range.
Return
A randomly generated IntVector2
within the specified bounds.
Parameters
The minimum inclusive value for both components of the vector. Defaults to -1.
The maximum exclusive value for both components of the vector. Defaults to 2.
The random number generator to use. Defaults to Random.Default
.
Generates a random vector with each component uniformly distributed between the specified minimum and maximum bounds.
Return
A random vector with each component uniformly distributed between the specified bounds.
Parameters
The minimum bound for the vector components. Defaults to -1.0 for all components.
The maximum bound for the vector components. Defaults to 1.0 for all components.
The source of randomness. Defaults to the system default random generator.
Generates a random vector with components uniformly distributed between the specified minimum and maximum bounds.
Return
A random vector with components uniformly distributed between the specified bounds.
Parameters
The minimum bound for each component of the vector. Defaults to a vector with all components set to -1.
The maximum bound for each component of the vector. Defaults to a vector with all components set to 1.
The source of randomness. Defaults to the system default random generator.
Generates a random 4-dimensional vector with each component sampled uniformly from a specified range between min and max.
Return
A Vector4
instance with random components within the specified range.
Parameters
The minimum value of the range for all components. Default is -1.0.
The maximum value of the range for all components. Default is 1.0.
The random number generator to use. Default is Random.Default
.
Generates a random 4-dimensional vector where each component is uniformly distributed within the provided range.
Return
A 4-dimensional vector with components uniformly distributed between the specified minimum and maximum values.
Parameters
The minimum values for each component of the vector. Defaults to -ONE.
The maximum values for each component of the vector. Defaults to ONE.
The random number generator to use. Defaults to Random.Default.