Code Snippet

Random

Use the random block to make Ohbot blink at random intervals.

The Random blocks

About this snippet

The Random instruction block enters a randomly selected number between the two values in the Pick Random block.

Go further

Can you use random to make the robot blink at different speeds.

Download

  1. Click the download button below.
  2. In the Ohbot App, on the File menu select ‘Open Ohbiverse Download’.
  3. Find the downloaded file and click Open.
Download snippet
Random — Code Snippet | Ohbot