WOOH! Go palm squiggle generator!

EDIT: Now made so that if it hits the edge of the screen (screen is 160 pixels horozontal and vertical, or from 0 to 159)

cls:x1=80:y1=80:x2=80:y2=80:r=0.01745329

randomize

do

l=int(rnd()*10)+1

a=int(rnd()*360)

ang=a*r

xd=int(l*sin(ang))

yd=int(l*cos(ang))

if (x1+xd)>159 then x2=0

if (y1+yd)>159 then y2=0

if (x1+xd)<0 then x2=159

if (y1+yd)<0 then y2=159

if (x1+xd)>159 then x1=x1-160+xd

if (y1+yd)>159 then y1=y1-160+xd

if (x1+xd)<0 then x1=x1+160+xd

if (y1+yd)<0 then y1=y1+160+xd

if (x1+xd)>-1 and (x1+xd)<160 then x1=x1+xd

if (y1+yd)>-1 and (y1+yd)<160 then y1=y1+yd

drawline x1,y1,x2,y2

x2=x1

y2=y1

loop until keydown(5)

end

note: keydown(5) = address book key

However, when it goes across one side back to the other, it may skip up to 9 pixels on the previous side. I'm going to fanangle it a bit to get another drawline into there to draw the line to the end of the screen before going across.