Learn how to generate a random number on the @boardname@.
This is the answer key for the guess the number quiz.
Answers may vary. Generally, on button pressed run code when an input button is pressed. The @boardname@ has two input buttons: A and B.
Write the line of code that creates a condition when the @boardname@ button A is pressed.
input.onButtonPressed(Button.A, () => {
})
let randomNumber = Math.randomRange(0, 10)
If the rectangle below represents the @boardname@, shade the areas that will be displayed. Explain why that particular area is shaded.
let randomNumber = Math.randomRange(0, 10)
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.