Now you can make your bear move back and forth from the tree.
Click the Motion category. Drag out a move 10 steps block.
From the Operators category, and drag out another pick random block. Insert it in the move block, so your script looks like this:
Type in a range, such as -100 to 100.
The negative number (-100) will make it move left, the positive number (100) will make it move right.