A random number generator that outputs floats between a minimum and a maximum.
To use the object you need to do the following.
Place randomRange.class and randomRange.java in the classes folder: Cycling '74 > java > classes
Then just create a new mxj randomRange object.
- Inlet 1 accepts bangs and will output the next random number
- Inlet 2 accepts floats or ints and sets the minimum range of the object
- Inlet 3 accepts floats or ints and sets the maximum range of the object
- Outlet 1 outputs the next random number within the specified range
If you're curious about the code you can send a viewsource message to mxj randomRange.
randomRange has been tested with Max5 and Max6 on OS X Yosemite with no issues and Max6 on Windows 10. If you test on a different system or come across a bug please let me know so I can update the docs.
If you have any issues the mxj reference is a good place to look: https://docs.cycling74.com/max5/refpages/max-ref/mxj.html or you can drop me a line [email protected]