The code:

  1. function setup()
  2. {
  3.   createCanvas(800, 800)
  4.   background(0)
  5.   for(var i = 0; i < width; i++)
  6.   {
  7.     strokeWeight(0.5)
  8.     stroke(255)
  9.     line(i*2, random(0, height), i/2, random(height, 0))
  10.   }
  11. }
  12. function draw()
  13. {
  14. }