wandering: n "Make the robot walk a random distance and turn through a random angle n times." n timesRepeat: [ self go: 30 atRandom. self turnLeft: 30 atRandom ]
wandering: n maxAngle: angle "Make the robot walk a random distance and turn through a random angle n times." n timesRepeat: [ self go: 30 atRandom. self turnLeft: angle atRandom ]
wandering: n maxAngle: angle "Make the robot walk a random distance and turn through a random angle n times." | left | . . . left := 2 atRandom. left = 1 ifTrue: [ self turnLeft: ... ] ifFalse: [ self turnRight: ... ] . . .