Forums > MaxMSP

changing paramiters of the random button

June 30, 2010 | 10:19 pm

hi.

tried to find this in tutorial and on this forum but can’t

I want to change the start and end numbers of a ‘random’

for example ‘random 128′ bangs random numbers between 0 and 127.

I want to change this so I can have random numbers from say 50 and 70 using a ‘rslider’

the ‘min $1′ and ‘max $1′ are not recognized by the ‘random’

any other ideas.

cheers


June 30, 2010 | 11:50 pm

You need to think "outside the object", so to speak. Try using the rslider selection to set the output range of a scale object, after setting the range of random to your selection size, like this:

– Pasted Max Patch, click to expand. –

July 1, 2010 | 1:03 am

this works a treat.

thank you


Viewing 3 posts - 1 through 3 (of 3 total)