Skip to content

Commit

Permalink
Update Calc.java
Browse files Browse the repository at this point in the history
  • Loading branch information
DevDyna committed Dec 5, 2024
1 parent cb56ba3 commit 4c33791
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main/java/com/devdyna/easybee/Utils/Calc.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,19 @@ public static boolean rnd99() {
return Math.random() < 0.99;
}

public static boolean rnd90() {
return Math.random() < 0.90;
}

public static boolean rnd05() {
return Math.random() < 0.05;
}

public static boolean rnd10() {
return Math.random() < 0.1;
}

public static boolean rndCustom(int percentuage) {
return Math.random() < (percentuage/100);
}
}

0 comments on commit 4c33791

Please sign in to comment.