Skip to content

Files

Latest commit

 

History

History

Day 1

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Function which returns a random number in the given range

Create a function which returns a random number in the given range of values both inclusive

Challenges (0/2 done)

  • randomNumberGeneratorInRange(10, 50) should return a number between 10-50 (inclusive)
  • randomNumberGeneratorInRange(100, 200) should return a number between 100-200 (inclusive)
function randomNumberGeneratorInRange(min, max) {
	// write your solution here

	return
}

console.log(`My random number: ${randomNumberGeneratorInRange(5, 100)}`)