[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: LOGO-L> short question



Pete Gerum wrote:
> 
> In Microworlds logo:    If I have a random forward command is there a
> reporter or command that would retain that random forward movement so
> that it would move the turtle backwards the same number as the forward
> random movement?
> How would that line read please?
> fd random 150  - and then how to go back exactly the random number
> chosen ?


You can do this:

to main
move random 150
end

to move :rnd
fd :rnd
bk :rnd
end

[[Yehuda]]
---------------------------------------------------------------
Please post messages to the Logo forum to logo-l@gsn.org.  Mail
questions about the list administration to logofdn@gsn.org.  To
unsubscribe send    unsubscribe logo-l    to majordomo@gsn.org.



Global SchoolNet Foundation - Linking Kids Around the World!
Copyright GSN - All Rights Reserved - Comments & Questions
Visit GSN's Global Schoolhouse for more exciting learning resources!
Search our Site - Home