πŸ“Š JavaScript
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);
πŸ’¬ Discuss
βœ… Correct Answer: (D) Math.floor((Math.random() * 5) + 5);

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
214
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Yogesh
Publisher
πŸ“ˆ
85%
Success Rate