Write the line of code that creates a **local variable** and a **random number**.
```
let randomNumber = Math.random(10)
```
## 4. Consider the following code
```
randomNumber = Math.random(10)
```
If the rectangle below represents the BBC micro:bit, shade the areas that will be displayed. Explain why that particular area is shaded.
![](/static/mb/lessons/guess-the-number-0.png)
The random number generator will return a number from 0 to the limit. However, not including the limit unless the limit is 0. So you can place an X to represent any single digit number.