Program the micro:bit give a number between 1 and 6 when the A button is pressed.
Help
import random
val = random.randint(1, 3)
random.randint(1, 3)
gives a random value between 1 and 3.
Program the micro:bit give a number between 1 and 6 when the A button is pressed.
Help
import random
val = random.randint(1, 3)
random.randint(1, 3)
gives a random value between 1 and 3.