Answers for "random in math example"

1

random function javascript

let object = random(0, 50);
// making "object" a random number between 0 and 50.

console.log(object);
// printing object in the console
Posted by: Guest on June-24-2020
0

random math js

(Math.random()*100).toFixed(0)
Posted by: Guest on July-20-2021
0

What does Math.random() do?

it generates a random number between 0 and 1 (not inclusive of 1)
Posted by: Guest on August-01-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language