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 0bd7f50 commit 7a3d74fCopy full SHA for 7a3d74f
1 file changed
scripts/user.ts scripts/user.jsscripts/user.ts renamed to scripts/user.js
@@ -1,6 +1,6 @@
1
function generateUser() {
2
createProfile();
3
- return "USER" + Math.randomRange(1000, 9999);
+ return "USER" + randomRange(1000, 9999);
4
}
5
generateUser();
6
@@ -15,8 +15,7 @@ function createProfile() {
15
});
16
17
18
- namespace Math {
19
- export function randomRange(min: number, max: number): number {
+function randomRange(min, max) {
20
if (min == max) return min;
21
if (min > max) {
22
let t = min;
@@ -27,5 +26,3 @@ function createProfile() {
27
26
return min + Math.floor(Math.random() * (max - min + 1));
28
else
29
return min + Math.random() * (max - min);
30
- }
31
-}
0 commit comments