Click the green flag and watch Scratchy tumble. Then click see inside to see how I did it! What you need: 1 variable (preferably named i) 3 variable blocks (set, change, and the variable) 1 repeat until block 1 [] = [] boolean Any other code you'd like to add Place the Repeat Until block. Put the []=[] boolean inside it's boolean slot. Put the variable in the first value, and type any number from a desired range of 10 - 30 into the second value. Above the Repeat Until block place the Set i To block. Inside the Repeat Until block place the Change i By block. Above the Change i By block, add any code you want to happen. Inside all number slots put the i variable. You're done!
In Snap! there was a block that used the i function, so I replicated it using Scratch blocks.