And, as promised, we can now get back to the tree. With our new words random, setc and make, we can really work some magic.
Firstly, let's introduce some randomness by adding a random extra bit to the distance before we start to draw each vee. Try this:Problem is random only likes whole numbers. Check.
make "extra random :distance make "distance :distance + :extra Check.
But this is easy to fix with a new turtle word int which stands for integer (whole number). Check.
Exercise 28 You should be able to get your tree working now. Notice how each time you try it, you get a different tree - just like in nature! Check.