non repeating random generator with min/max range settings?

j walton's icon

Does anyone know if an object exists that generates random numbers without repetitions, such as [urn-jb], which also enables you to set the min/max range such as the litter power object [lp.tata]?

thanks

Chris Muir's icon

I think your best bit would be an abstraction that does a tiny amount of math, wrapped around urn-jb.

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

You can do it with [uzi] and some [zl] goodness:

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

(edit) some color-coding and got rid of an unneeded object :)

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

urn-jb wrapper:

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

I was searching today on the topic and even [urn-jb] seemed a bit complicated for what I wanted. here is my contribution: I use [random] and if new output is the same as previous, I retrigger [random].

Roman Thilenius's icon

use urn ... and get the min/max by using an offset (+50?)

Anthony Palomba's icon