We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8fc077 commit e8160cfCopy full SHA for e8160cf
build.gradle
@@ -8,7 +8,7 @@ shadowJar {
8
}
9
10
group 'me.dkim19375'
11
-version '2.0.0'
+version '2.1.0'
12
13
repositories {
14
mavenCentral()
src/main/java/me/dkim19375/dkim19375core/NumberUtils.java
@@ -0,0 +1,19 @@
1
+package me.dkim19375.dkim19375core;
2
+
3
+public class NumberUtils {
4
+ public static long getPercentage(long lower, long max) {
5
+ return (lower * 100) / max;
6
+ }
7
+ public static double getPercentageDouble(double lower, double max) {
+ public static boolean percentChance(float chance) {
+ return Math.random() <= chance;
15
16
+ public static boolean percentChance(int chance) {
17
18
19
+}
0 commit comments