Sometimes we don't need the robot to do the same and predictable things, but something random and unexpected! Here's how to do it!

To access the full video please subscribe to FLLCasts.com
- #2047
- 01 Aug 2022
The random number block is the first in the Operators section.
Unlike blocks from other sections, the block from the Operators section cannot be directly connected to the program. They are used to change a block, or rather the values in it, as we would like. These blocks can be placed in all blocks with a space of the correct shape.
In the random number picker box, we get a random number between the two entered numbers. We can use this number to change many blocks. For example, as shown in the video, we can program the robot to move a random number of centimeters forward.
The two settings of this block are the limits of the random number. By default, the random number is chosen from 1 to 10, but we can change it according to the task.
Courses and lessons with this Tutorial
This Tutorial is used in the following courses and lessons

Level A1 - Space Adventure - Robotics with LEGO SPIKE Prime
This is the first level of the LEGO Robotics Curriculum for second, third, and fourth-grade students.
A "space adventure" but with robots. Different robot structures are built in Level A1. The motors are controlled so that the robots perform precise movements around the "Earth", "Moon" and "Sun". We use the force sensor to overcome various obstacles we bump into. We learn interesting facts about the solar system and space vehicles.
- 65
- 30:30
- 76

Lesson 7 - Spacecrash
For students who will not take two levels in a row today is their last lesson.
- 5
- 4
- 6
- 3d_rotation 1