Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Ticxo
MoLang
Commits
52742a6e
Unverified
Commit
52742a6e
authored
4 years ago
by
Emre Yavuzyiğit
Committed by
GitHub
4 years ago
Browse files
Options
Download
Email Patches
Plain Diff
MoLangMath: opss
parent
4399d564
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/main/java/com/bedrockk/molang/runtime/MoLangMath.java
src/main/java/com/bedrockk/molang/runtime/MoLangMath.java
+1
-1
No files found.
src/main/java/com/bedrockk/molang/runtime/MoLangMath.java
View file @
52742a6e
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment