processing tutorial random code example
Example: random processing
for (int i = 0; i < 100; i++) {
float r = random(0,50); //Low, High
line(50, i, 50+r, i);
}
for (int i = 0; i < 100; i++) {
float r = random(0,50); //Low, High
line(50, i, 50+r, i);
}