What does the Math.random function return?
Learn JavaScript from Scratch JavaScript for Everyone - Random Numbers

Interactive Video
•
Computers
•
9th - 10th Grade
•
Hard
Quizizz Content
FREE Resource
Read more
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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 Quizizz
2 questions
Is A Number In A Sequence

Interactive video
•
9th - 10th Grade
6 questions
Is A Number In A Sequence

Interactive video
•
9th - 10th Grade
6 questions
AI Tool in Online Learning

Interactive video
•
9th - 10th Grade
8 questions
The Complete Solidity Course - Zero to Advanced for Blockchain and Smart Contracts - Build a Random Generator Function

Interactive video
•
9th - 10th Grade
3 questions
Data Science Prerequisites - Numpy, Matplotlib, and Pandas in Python - Scatterplot

Interactive video
•
9th - 10th Grade
5 questions
Machine Learning Random Forest with Python from Scratch - Using NumPy for Random Forest

Interactive video
•
9th - 10th Grade
8 questions
Generate Poisson Distribution and Histogram in Excel

Interactive video
•
9th - 10th Grade
8 questions
Deep Learning - Computer Vision for Beginners Using PyTorch - Create Tensors in PyTorch

Interactive video
•
9th - 10th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University