The figure it produces is shown below. Suppose the integer 7 is changed to 11 or 13. Arithmetic operators have precedences that determine the order with which they are evaluated. For this reason the first statement prints the value of 60 times the square root of 2 whereas second prints the square root of 120. Sometimes it is fun to have the outcome of a computation be unpredictable.
Logo provides the random procedure to generate a random number.
Thus, if you want a random angle between 1 and 360 degrees, you could use the command random 360 to produce it. Bear in mind that Logo will complain unless you do something with the result, such as print it. Try print random 360 several times in the command window and see what it produces. The first procedure produces a drawing such as that shown below. Procedures Procedures provide a way to encapsulate a collection of commands.