random()

Randomness is an important concept in coding. It's used all the time, particularly for making games. Bitsbox's random command either generates a random number in a specified range, or randomly picks a value from a given list.

What you get depends on how you call the command.

This program creates a random number between 1 and 200, then draws a bird at that size.

This program creates a randomly rotated bird.

 

This program draws one of three random animals. 

This program creates an array of groceries, then picks one of them.