Inside of a console.log, create a random number with Math.random, then multiply it by 100. If you run the program few times, you'll see random numbers in the console


#1

Inside of a console.log, create a random number with Math.random, then multiply it by 100.

If you run the program few times, you'll see random numbers in the console.

console.log(Math.floor(Math.random() * 100));

what did I wrong?


#2

can you please provide the exercise url? i don't see in the instructions anywhere that the use of math.floor was required, maybe you should remove math.floor?


#3

I'm stuck on the same exact problem and issue, any luck?


#4

Any luck? I'm stuck on the same problem.


#5

Did you ever find the correct solution? I'm having a similar problem on the same question. I entered:

console.log(Math.floor(Math.random() * 100));

the number generated is 15

Do I create a new console.log like this:

console.log(15 * 100);

Where do I insert this number? I keep getting a error message reading:

Did you multiple Math.random() by 100 inside a console.log statement?

I have been stumped for hours and you were the only one on the forum with the same issue. Any help or advice would be greatly appreciated, thank you in advance for your time.


#6

Here is the solution, seems I was doing the steps out of order.


#7

Thank you so much for your response i was going mad


#8