Skip to content

Commit 7a3d74f

Browse files
Update and rename user.ts to user.js
1 parent 0bd7f50 commit 7a3d74f

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

scripts/user.ts renamed to scripts/user.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
function generateUser() {
22
createProfile();
3-
return "USER" + Math.randomRange(1000, 9999);
3+
return "USER" + randomRange(1000, 9999);
44
}
55
generateUser();
66

@@ -15,8 +15,7 @@ function createProfile() {
1515
});
1616
}
1717

18-
namespace Math {
19-
export function randomRange(min: number, max: number): number {
18+
function randomRange(min, max) {
2019
if (min == max) return min;
2120
if (min > max) {
2221
let t = min;
@@ -27,5 +26,3 @@ function createProfile() {
2726
return min + Math.floor(Math.random() * (max - min + 1));
2827
else
2928
return min + Math.random() * (max - min);
30-
}
31-
}

0 commit comments

Comments
 (0)