I have a scene with about 50 ropes, I made about 20 textures, I want to generate a random index I can use in my shader to tell it which texture to use. I am using "cluster", with class I got from "connectivity". This does essentially what I want, however, since the class numbers are close to each other, it is "clustering" them, so for instance you see 3 next to each other using the same texture. I feel like I fiddled with all the options on "cluster" and cannot really shake this.
Someone came up with this for me, but it leaves some being used 4 times, and others none. I wish there was a way to "relax iterations" like there is with a scatter to get an even distribution.
intgrpCnt = 10; //Number of groupingsi@myGrp = int( rand(@class) * grpCnt );//Randomize order