Unverified Commit 52742a6e authored by Emre Yavuzyiğit's avatar Emre Yavuzyiğit Committed by GitHub
Browse files

MoLangMath: opss

parent 4399d564
...@@ -47,7 +47,7 @@ public class MoLangMath { ...@@ -47,7 +47,7 @@ public class MoLangMath {
return (int) Math.round(low + Math.random() * (high - low)); return (int) Math.round(low + Math.random() * (high - low));
} }
public static float dieRoll(double num, double low, double high) { public static double dieRoll(double num, double low, double high) {
int i = 0; int i = 0;
int total = 0; int total = 0;
while (i++ < num) total += random(low, high); while (i++ < num) total += random(low, high);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment