To set a random integer or number, simply take an x = y block from the Operators category and copy the code shown on the block to the right.
number = random.randint(1, 5)
# Takes a random integer between 1 and 5
This block simply takes a random integer between the numbers that we set (1 and 5 in this case. Simply put, integers are whole numbers, meaning numbers that don’t have a decimal or a fraction.