Answers for "Declare a variable named randomTop. Use Math.floor() and Math.random() to generate a random number between 1-400, and set this number as the value of randomTop."

5

Math.random javascript double

function getRandomNumberBetween(min,max){
    return Math.floor(Math.random()*(max-min+1)+min);
}
Posted by: Guest on December-31-2019

Code answers related to "Declare a variable named randomTop. Use Math.floor() and Math.random() to generate a random number between 1-400, and set this number as the value of randomTop."

Code answers related to "Javascript"

Browse Popular Code Answers by Language