add leveling feature
All checks were successful
Deploy to Dokku / docker (ubuntu-latest) (push) Successful in 1m5s
All checks were successful
Deploy to Dokku / docker (ubuntu-latest) (push) Successful in 1m5s
This commit is contained in:
@ -48,4 +48,15 @@ public final class MathUtils {
|
||||
public static double lerp(double a, double b, double t) {
|
||||
return a + t * (b - a);
|
||||
}
|
||||
|
||||
/**
|
||||
* Generates a random number between a minimum and maximum.
|
||||
*
|
||||
* @param min The minimum value.
|
||||
* @param max The maximum value.
|
||||
* @return The random value.
|
||||
*/
|
||||
public static double random(double min, double max) {
|
||||
return Math.random() * (max - min) + min;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user