Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

Problem 17 (L-B) ~ Generate Random Number

Problem

This program generates a random number between minimum and maximum value.

Solution

let min = 0;
let max = 10;

console.log(Math.floor(Math.random() * (max - min + 1)) + min);

References

Problem Added By

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.