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 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
Get step-by-step solutions from verified subject matter experts
