[This is the second in a series of scripts I’m sharing while I learn to write applications for the new Monome Crow, a Eurorack module that connects to Norns or computers running Max, Max for Live, and other serial-enabled applications. Crow also stores a complete script, so that without a USB connection it can continue to run, responding to CV input and ii messages.]
A example script demonstrating a method to generate weighted random numbers. In addition to the min/max value settings, the method has three parameters that control how the randomness is weighted:
Download the script and find more details at the Lines forum.