Created
March 11, 2022 10:16
-
-
Save AitorAlejandro/c6342fecf91fcb76c1f5ee35d35451bd to your computer and use it in GitHub Desktop.
Generates a random integer based on current time
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const randomInteger = (): number => new Date().getTime(); | |
randomInteger(); // -> 1646617367345 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment