Skip to content

Instantly share code, notes, and snippets.

@AitorAlejandro
Created March 11, 2022 10:16
Show Gist options
  • Save AitorAlejandro/c6342fecf91fcb76c1f5ee35d35451bd to your computer and use it in GitHub Desktop.
Save AitorAlejandro/c6342fecf91fcb76c1f5ee35d35451bd to your computer and use it in GitHub Desktop.
Generates a random integer based on current time
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