The highest and minimum possible values | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

The highest and minimum possible values

Please what’s the highest possible value produce here? Math.floor(Math.random() *101)

7th Sep 2022, 4:57 PM
DESMOND YEBOAH
DESMOND YEBOAH - avatar
4 Answers
+ 5
DESMOND YEBOAH , what programing language are you talking about?
7th Sep 2022, 5:16 PM
Lothar
Lothar - avatar
+ 2
Javascript
7th Sep 2022, 5:28 PM
DESMOND YEBOAH
DESMOND YEBOAH - avatar
+ 1
How please?
7th Sep 2022, 5:34 PM
DESMOND YEBOAH
DESMOND YEBOAH - avatar
0
Is it because of this formula Math.floor(Math.random() * (high-low+1))+low ?
7th Sep 2022, 6:44 PM
DESMOND YEBOAH
DESMOND YEBOAH - avatar