A

Admin • 833K Points
Coach

Q. How to get a random number between 5 and 9 inclusive?

  • (A) Math.floor((Math.random() * 5) + 4);
  • (B) Math.floor((Math.random() * 4) + 4);
  • (C) Math.floor((Math.random() * 4) + 5);
  • (D) Math.floor((Math.random() * 5) + 5);
  • Correct Answer - Option(D)
  • Views: 26
  • Filed under category JavaScript
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.