<PLEASE USE THIS TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>

https://www.codecademy.com/courses/learn-javascript/lessons/control-flow/exercises/random?action=lesson_resume

<Below this line, in what way does your code behave incorrectly? Include ALL error messages.>

Not allowing me to work Math.floor into random.Number. Im anaged to get randomNumber to work correctly, but cannot integrate Math.floor.

Did you wrap Math.random() * 100 with Math.floor()?

```
var randomNumber = Math.random = Math.floor (8.6) * 100 ;

console.log(randomNumber);

`<do not remove the three backticks above>`

dave.n
#2
Is this for the exercise or you’r just playing around with it?

You set a variable to two different things in the same line. If you’re trying to run Math.floor on Math.random, use this syntax.

```
var randomNumber = Math.floor(Math.random() * 100);
```

It works now. Thank you for your time.

system
closed
#5
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.