Brownian tree: Difference between revisions

m
mNo edit summary
Line 81:
}</lang>
=={{header|PureBasic}}==
<lang PureBasic>EnableExplicit#Window1 = 0
 
#Window1 = 0
#Image1 = 0
#ImgGadget = 0
Line 108 ⟶ 106:
x = x + (Random(2)-1) : y = y + (Random(2)-1)
If x < 1 Or x > #xmax Or y < 1 Or y > #ymax
Debug x : Debug y
x = Random(#xmax)+1 : y = Random (#ymax)+1
EndIf
Anonymous user