CodeNewbie Community

Discussion on: How can I generate random numbers in JavaScript?

Collapse
robertcego profile image
Robert Cerdas Gómez • Edited

Hi Hailey! We are happy that you joined the coders community! Welcome!

This is a function to get random numbers from 0 to 10:


const randomNumbers = () => Math.floor(Math.random() * 10);