[MWForum]New Question

Dan Stone mwforum@lists.mathcats.com
Thu, 24 Jun 2004 15:26:51 -0400


This is a multi-part message in MIME format.

------=_NextPart_000_0005_01C459FF.B02BA780
Content-Type: text/plain;
	charset="US-ASCII"
Content-Transfer-Encoding: 7bit

try this:
 
to RandomBorF
;randomly pick 1 or 0
;if zero, go fd
;if 1 go back

make "borf random 2

ifelse :borf < 1 [fd 10][bk 10]

end

You can edit the turtle and add RandomBorF as the instruction.

 = ================
  Can the turtle be programmed to random go fd  10 or bk 10 ?


------=_NextPart_000_0005_01C459FF.B02BA780
Content-Type: text/html;
	charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<TITLE>Message</TITLE>

<META content=3D"MSHTML 6.00.2800.1400" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D450012219-24062004><FONT face=3DArial color=3D#0000ff =
size=3D2>try=20
this:</FONT></SPAN></DIV>
<DIV><SPAN class=3D450012219-24062004><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D450012219-24062004><FONT face=3D"Courier New" =
size=3D2>to=20
RandomBorF</FONT></SPAN></DIV>
<DIV><SPAN class=3D450012219-24062004><FONT face=3D"Courier New" =
size=3D2>;randomly=20
pick 1 or 0</FONT></SPAN></DIV>
<DIV><SPAN class=3D450012219-24062004><FONT face=3D"Courier New" =
size=3D2>;if zero, go=20
fd</FONT></SPAN></DIV>
<DIV><SPAN class=3D450012219-24062004><FONT face=3D"Courier New" =
size=3D2>;if 1 go=20
back</FONT></DIV>
<DIV>
<P><FONT face=3D"Courier New" size=3D2>make "borf random 2</FONT></P>
<P><FONT face=3D"Courier New" size=3D2>ifelse :borf &lt; 1 [fd 10][bk =
10]</FONT></P>
<P><FONT face=3D"Courier New" size=3D2>end</FONT></P>
<P><SPAN class=3D450012219-24062004><FONT face=3D"Courier New" =
size=3D2>You can edit=20
the turtle and add RandomBorF as the =
instruction.</FONT></SPAN></P></SPAN></DIV>
<BLOCKQUOTE=20
style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px =
solid; MARGIN-RIGHT: 0px">
  <DIV></DIV>
  <DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr =
align=3Dleft><FONT=20
  face=3DArial><FONT color=3D#0000ff><FONT size=3D2><SPAN=20
  class=3D450012219-24062004>&nbsp;</SPAN>=3D<SPAN=20
  =
class=3D450012219-24062004>&nbsp;=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D</SPAN></FONT></FONT></FONT></DIV>
  <DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr =
align=3Dleft><FONT=20
  face=3DArial><FONT color=3D#0000ff><FONT size=3D2><SPAN=20
  class=3D450012219-24062004>&nbsp;</SPAN></FONT></FONT></FONT><SPAN=20
  class=3D450012219-24062004>&nbsp;</SPAN>Can the turtle be programmed =
to random=20
  go fd&nbsp; 10 or bk 10 ?</DIV></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0005_01C459FF.B02BA780--