Random
The Random class provides various methods for generating random values and noise. It includes methods for generating Open Simplex noise, random vectors, random coordinates, and random numbers within specified ranges.
Methods in this class are static and can be accessed directly without creating an instance of the class.
Example usage:
double noiseValue = Random.noise(10.0);
Vector2 randomVector = Random.randomVector2();
double randomX = Random.randomX();
double randomY = Random.randomY();
Vector2 randomPosition = Random.randomPosition();
double randomDouble = Random.random();
int randomInt = Random.randomInt(100);
double randomDoubleInRange = Random.random(5.0, 10.0);
Note: The noise methods use Open Simplex noise, and the random methods use java.util.Random.
