Help building a binary output module?

Hi! Not sure if I’m using the right lingo, but essentially I want to create a module that, when triggered, randomly outputs either a 0 or a 1. I’ve been trying to figure out how to do it by myself, but I’ve had no luck so far. I feel like this is a really easy answer that I’m somehow missing. But, anyway, thanks! Hope y’all are doing well!

1 Like

This already exists! It’s called the Chance Gate Over-Under, and it’s in the Audulus library. It’s adjustable so you can bias it towards more frequent 0’s or 1’s. It’s very simple - you put a random node into a sample and hold node and you use an input trigger to sample a random number. If that number is less than the number represented by the knob, it outputs a 1. Otherwise, it outputs a zero.


Sweet! Thank you!

1 Like