Horje
js Write a function that will return a random integer between 10 and 100 Code Example
js Write a function that will return a random integer between 10 and 100
function randomIntFromInterval(min, max) { // min and max included 
  return Math.floor(Math.random() * (max - min + 1) + min)
}

const rndInt = randomIntFromInterval(1, 6)
console.log(rndInt)
 Run code snippetHide results




Javascript

Related
js hangman with repeated characters Code Example js hangman with repeated characters Code Example
FTP Code Example FTP Code Example
check if a string matches a regex javascript Code Example check if a string matches a regex javascript Code Example
angular chart js Doughnut colors Code Example angular chart js Doughnut colors Code Example
angularjs left xx characters Code Example angularjs left xx characters Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11