// Example that shows how to draw a bunch of random lines // Each pixel position at the bottm and across the drawing window will be the // starting point of a line. // This sketch shows how truly random, random() is. void setup() { size(500, 500); background(255); noLoop(); } // setup()
void draw() { for (int i = 0; i < width; i++) { line(i, height, i, random(height)); } } // draw()