Skip to content

Commit

Permalink
randomNumber function
Browse files Browse the repository at this point in the history
  • Loading branch information
zabkwak committed Mar 22, 2022
1 parent 0bfdaa7 commit 0777081
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mat-utils",
"version": "0.2.0",
"version": "0.2.1",
"description": "Utils for Media analytics tool",
"main": "index.js",
"types": "./dist/index.d.ts",
Expand Down
5 changes: 5 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,14 @@ const sleep = (timeout: number) => {
});
};

const randomNumber = (min: number, max: number): number => {
return Math.floor(Math.random() * (max - min + 1) + min);
};

export {
CSV,
Logger,
ParquetField,
sleep,
randomNumber,
};

0 comments on commit 0777081

Please sign in to comment.