what :
Home > Objects > D > drunk > author : Cycling74


Output random numbers in a moving range

Drunk takes two optional arguments. The first argument is a range specification, the second is a step size. Drunk does a random walk, constrained between zero and the range (here 128) and step of up to one less than the maximum step size. The maximum step size can be changed via the inlet with an int and int output is produced by inputting a bang in the inlet. The default range is 128, the default current value is 64, and the default step size is 2 (steps of 0 and 1 are allowed). A negative step size is the same as a positive one, except that steps of size 0 are never made.
from the libraries :
Max / Random Objects
Format : External
Environment : max
Max 4.x


4855 objects and 135 libraries within the database Last entries : December 23rd, 2023 Last comments : 0 0 visitor and 94988375 members connected RSS
Site under GNU Free Documentation License