Skip to content

Commit 9d627fd

Browse files
Update user.js
1 parent d2b0fc5 commit 9d627fd

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

scripts/user.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ function createProfile() {
1616
}
1717

1818
function randomRange(min, max) {
19-
if (min == max) return min;
20-
if (min > max) {
21-
let t = min;
22-
min = max;
23-
max = t;
19+
if (min == max) return min;
20+
if (min > max) {
21+
let t = min;
22+
min = max;
23+
max = t;
2424
}
25-
if (Math.floor(min) == min && Math.floor(max) == max)
26-
return min + Math.floor(Math.random() * (max - min + 1));
27-
else
28-
return min + Math.random() * (max - min);
25+
if (Math.floor(min) == min && Math.floor(max) == max)
26+
return min + Math.floor(Math.random() * (max - min + 1));
27+
else
28+
return min + Math.random() * (max - min);
2929
}

0 commit comments

Comments
 (0)