Learn JavaScript from Scratch JavaScript for Everyone - Random Numbers
Interactive Video
•
Computers
•
9th - 10th Grade
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Read more
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the Math.random function return?
A number between 0 and 1
A number between 0 and 100
A number between 1 and 100
A number between 0 and 10
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you generate a random number between 0 and 100 using Math.random?
By adding 100 to Math.random
By multiplying Math.random by 100
By subtracting 100 from Math.random
By dividing Math.random by 100
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of using Math.floor with Math.random?
To generate a number between 1 and 100
To generate a number between 0 and 1
To round the number up to the nearest whole number
To round the number down to the nearest whole number
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you generate a random number between 0 and 83?
By multiplying Math.random by 83
By adding 83 to Math.random
By dividing Math.random by 83
By subtracting 83 from Math.random
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between Math.floor and Math.ceil?
Both round to the nearest decimal
Math.floor rounds down, Math.ceil rounds up
Math.floor rounds up, Math.ceil rounds down
Both round to the nearest whole number
Similar Resources on Wayground
11 questions
Understanding Data Analysis Techniques
Interactive video
•
9th - 12th Grade
11 questions
Understanding Operating Systems
Interactive video
•
9th - 12th Grade
6 questions
TED-ED: Why are fish fish-shaped? - Lauren Sallan
Interactive video
•
KG - University
11 questions
Evolution and Biodiversity Concepts
Interactive video
•
9th - 10th Grade
11 questions
Ecological Sampling Techniques Assessment
Interactive video
•
9th - 10th Grade
6 questions
Wirtschaftskreislauf
Interactive video
•
9th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade