Question: Create a function called randomBetween(x, y) that will return a random number between two numbers that are passed as parameters, x and y. Using

Create a function called randomBetween(x, y) that will return a random number

 

Create a function called randomBetween(x, y) that will return a random number between two numbers that are passed as parameters, x and y. Using the Math library, round the number. Add a bonus to the function and modify it so it returns a random number between the half of x, and the half of y

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!