Getting Random to accept float values

dthomas86's icon

Hello,
I am looking to generate random inharmonic frequencies for cycle is there a way for random to accept float values or is this a job for an external object?

bkshepard's icon
Max Patch
Copy patch and select New From Clipboard in Max.

[random] doesn't do floats. But you can do something like this:

dthomas86's icon

Cheers for that multiplying by 1.0 is an other way? But there is no way to use a float as an argument only an int is it? Cheers again mate.

lgabiot's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Not sure it will help, but you can make some sort of float accepting random this way (you decide the precision of the float):

laonikoss's icon

i have made an abstraction which is basically similar to a [random] object, but you can define minimum + maximum values, as well as step size (default = 1).

it also accepts negative numbers and floats (but for floats you need to define the step size)

https://cycling74.com/tools/lao-patchers/ (it's the last one on the list)

hope this helps :)

Maurizio Giri's icon
Max Patch
Copy patch and select New From Clipboard in Max.

my 2 cents

Zachary Seldess's icon

I use this sometimes.

1884.z.randz.zmap.zip
zip