Milad
BlogTagsProjectsOpen-Source ProjectsBooksCoursesAbout
Blog
Tags
Projects
Open-Source Projects
Books
Courses
About
Published on
Friday, December 31, 2021 | ☕️ 1 min read

Random integer number

Authors
  • avatar
    Name
    Milad E. Fahmy
    Twitter
    @miladezzat12

Create a random int number

getRandomInt(max) {
    return Math.floor(Math.random() * max);
}
Discuss on Twitter • View on GitHub

Tags

javascript

Previous Article

A surprising feature of JavaScript optional chaining

Next Article

Redis Message Queue
← Back to the blog
mailgithubfacebookyoutubelinkedintwitter
Milad Ezzat
•
© 2024
•
Milad Ezzat