[PD] vanilla solution for random float
Fred Jan Kraan
fjkraan at xs4all.nl
Tue May 31 18:04:49 CEST 2016
Hi Raphaël,
> Hello list,
>
> I want to do a simple task : pick a random float in a defined range
> (let's say between 0.0 and 1.0).
> I know there are this kind of objects in external libraries (something
> like [randomF] if remember), but since the collapse of Pd-Extended, I
> generally prefer to make vanilla abstractions.
This is the best solution from educational point of view, and the most
fun :-)
>
> so I wondered if there are other vanilla and efficient solutions?
> ...or if I just have to get the external from deken... ?
> :)
The deken external library maxlib contains a collection of random number
generators (see maxlib-help.pd for an overview). The usual range is 0-1,
so you can multiply as you wish.
>
> thanks,
>
> Raphaël
>
Greetings & success,
Fred Jan
More information about the Pd-list
mailing list