How to use the pick random block in LEGO SPIKE Prime Word Blocks software Pro Preview

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

Subscribe

  • #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

Image for Robotics with LEGO SPIKE Prime - Level A1
  • 64
  • 30:30
  • 76
Image for Lesson 7 - Spacecrash
  • 5
  • 4
  • 6
  • 3d_rotation 1