JavaScript JavaScript Basics Creating Reusable Code with Functions Random Number Challenge

Reza Zandi
Reza Zandi
Full Stack JavaScript Techdegree Student 1,599 Points

my code

function getRandomNumber(min, max) {
  return Math.floor(Math.random() * (max - min + 1)) + min};




document.write(getRandomNumber(2,5));
document.write('<br>');
document.write(getRandomNumber(10,50));