diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-05-22 11:58:05 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-05-22 11:58:05 +0700 |
| commit | 33da0fcb718335eb1d077af4321ac65e0146a2d6 (patch) | |
| tree | d87dab8d58c3e148e3e541a88b1ef7d2fd6d0ba7 /src/utils | |
| parent | c65d7f6b82a7f2f80b1fe43a0bd06144d2ca64ff (diff) | |
Refactoring hero banner feature
Diffstat (limited to 'src/utils')
| -rw-r--r-- | src/utils/getRandomInt.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/utils/getRandomInt.js b/src/utils/getRandomInt.js new file mode 100644 index 00000000..900e55f8 --- /dev/null +++ b/src/utils/getRandomInt.js @@ -0,0 +1,3 @@ +export const getRandomInt = (max) => { + return Math.floor(Math.random() * max); +}
\ No newline at end of file |
