add leveling feature
All checks were successful
Deploy to Dokku / docker (ubuntu-latest) (push) Successful in 1m5s

This commit is contained in:
Lee
2024-07-06 04:04:38 +01:00
parent 60ce8df108
commit 9d78432211
10 changed files with 462 additions and 0 deletions

View File

@ -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;
}
}