Make a yes-or-no decision with a given likelihood

The probablility P of something occurring is defined as the number of looked-for outcomes divided by the number of possible outcomes. For example, the probability that heads will show up on an unbiased coin flip is 1 (there is one instance of heads on the coin) divided by 2 (there are two possible outcomes, heads or tails), which means P = 0.5. With this definition, any probability can be described as a number in the range from 0 (impossible) to 1 (absolute certainty).

Trigger sample with metro

This program triggers a sound repeatedly, and changes the sound's playback rate with each repetition. The sound file is so short that there's really no need to turn it off with a 0, so we just start it with a 1. The playback rate is calculated so as to cause a random transposition from -12 to +12 equal-tempered semitones, using the twelfth root of 2; the number of semitones (x) of transposition is determined by setting the rate to "2 to the x/12 power". You can put the patch into Presentation mode, which will present a cleaner user interface.