Skip to content

Commit 71d5633

Browse files
Update user.js
1 parent bc844c1 commit 71d5633

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
@@ -17,13 +17,13 @@ function createProfile() {
1717

1818
function randomRange(min, max) {
1919
if (min == max) return min;
20-
if (min > max) {
21-
let t = min;
22-
min = max;
23-
max = t;
24-
}
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);
20+
if (min > max) {
21+
let t = min;
22+
min = max;
23+
max = t;
24+
}
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)