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 the blocks from other sections, all those 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 that have 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
Robotics with LEGO SPIKE Prime - Level A1
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 this level. The motors are controlled so that the robots perform precise movements around the "earth", "moon" and "sun". We overcome various obstacles after bumping into them thanks to the force sensor. We learn interesting facts about the solar system and space vehicles.
- 64
- 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