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

RE: LOGO-L> short question



If Pete wanted to use the same random movement quantity sometime "later" in
his procedure, would it not be better to do something like:
make "variable random 150
fd :variable
.
.
bk :variable

Or does your code achieve the same thing (more elegantly)?

> -----Original Message-----
> From: owner-logo-l@gsn.org [mailto:owner-logo-l@gsn.org]On Behalf Of
> yehuka
> Sent: Thursday, June 25, 1998 5:32 AM
> To: Pete Gerum
> Cc: logo-l@gsn.org
> Subject: 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.
>

---------------------------------------------------------------
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