How do I convert the old style random function to the new one?

Posted October 3, 2017 by ilee

To translate the old random block to the new random block, all you need to do is set the range to be 1 to the number at the top of the range.  It works like this for the wiggle:
old way:   left turn random 30   right turn random 30    forward 1
new way: left turn random 1 to 30   right turn random 1 to 30    forward 1

Basically the new random function asks for the range within which to randomly select a number.  We switched how it works so we can easily do something like this:

set my x value to a random number between -50 and 50  (see below)

Inline image 1


Be the first to comment.