Can you write a random integers function to print integers with in a range?
Answer / hrpatelsoft@gmail.com
function randomInteger(min, max) {
return Math.floor(Math.random() * (max - min + 1) ) + min;
}
randomInteger(1, 100); // returns a random integer from 1 to 100
randomInteger(1, 1000); // returns a random integer from 1 to 1000
| Is This Answer Correct ? | 0 Yes | 0 No |
How do you implement Ajax using hide() function in JQuery?
How do I open javascript?
What is undefined x 1 in JavaScript?
how many feet does a centipeed have?
hi i want validations for two dropdown lists in java script.when user enter to second dropdown list by skipping first dropdown list we should get alert box. please help me very urgent
What's the Difference Between Class and Prototypal Inheritance?
How can we establish connection with java and sql server?
Can you explain how inheritance works in javascript?
How do I use javascript to password-protect my web site?
What is difference between scripting and programming?
What is event in javascript?
why array is called the collection of similar datatypes?