size(600, 600)
background(50)
stroke(200)
for i in range(5):
line(random(width), random(height),
random(width), random(height))
size(600, 600)
background(50)
def draw_me_a_line(colour=200):
stroke(colour)
line(random(width), random(height),
random(width), random(height))
for i in range(5):
draw_me_a_line()
size(600, 600)
background(50)
def draw_me_a_line(colour=200):
stroke(colour)
line(random(width), random(height),
random(width), random(height))
for i in range(5):
chance = random(100)
if chance > 50:
draw_me_a_line()
else:
draw_me_a_line(100)