What are the steps to generate a random floating number between range lower to upper using random()
Answers
Answered by
1
Answer:
hope you understand
Explanation:
Answer:
1. first ask for the minimum and maximum values of the range...
2. then define the range as
range = maximum - minimum + 1
3. then use this formula
randomnum = Math.random()*range
Similar questions