Random number generation lab
Easy
1
50.0% Acceptance
In this lab, your task is to create a JavaScript function that can generate random numbers between a given minimum and maximum range. You'll be using the popular Math.random()
function to achieve this. You are required to define a function called generateRandomNumber(min, max)
, which will generate a random number between the range of min
and max
, inclusive. Additionally, you have to use ESM syntax to export the function from the index.js
file.