random choice processing code example
Example 1: random processing
for (int i = 0; i < 100; i++) {
float r = random(0,50); //Low, High
line(50, i, 50+r, i);
}
Example 2:
for (int i = 0; i < 100; i++) {
float r = random(50);
stroke(r*5);
line(50, i, 50+r, i);
}