We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc844c1 commit 71d5633Copy full SHA for 71d5633
1 file changed
scripts/user.js
@@ -17,13 +17,13 @@ function createProfile() {
17
18
function randomRange(min, max) {
19
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);
+ if (min > max) {
+ let t = min;
+ min = max;
+ max = t;
+ }
+ if (Math.floor(min) == min && Math.floor(max) == max)
+ return min + Math.floor(Math.random() * (max - min + 1));
+ else
+ return min + Math.random() * (max - min);
29
}
0 commit comments