Learn creative coding writing simple programs

18. Things that happen sometimes

This is the second time we compare a random number to a given number to make an event happen only sometimes, not always. Changing the given number we can make the event more or less probable. We test different numbers while animating some vertical lines that create something similar to a bar-code.

Tags: random

Code editor

You can make changes to the code below. Then
Below you can ask and answer questions related to this video. If your question is unrelated to the video, please post it at the Processing Forum as I'm unable to help with all of your programs and still have enough free time to eat and sleep :)
comments powered by Disqus