Anonymous user
Brownian tree: Difference between revisions
m
→{{header|PureBasic}}
mNo edit summary |
|||
Line 81:
}</lang>
=={{header|PureBasic}}==
<lang PureBasic>
#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
x = Random(#xmax)+1 : y = Random (#ymax)+1
EndIf
|