Forum: CFEngine Help Subject: Re: CFEngine Help: Re: Using dist for random selections Author: sauer Link to topic: https://cfengine.com/forum/read.php?3,24506,24510#msg-24510
neilhwatson Wrote: ------------------------------------------------------- > I got the impression that select_class was always > the same for a given host. I definitely want > something random on the same host. You could use a changing value (perhaps randomint :)) as the "thing" that selectclass hashes upon. It's a tad more limited, though, in that you have either a 1/12 chance or a 1/24 chance, depending if you do the hourly or daily method. I'm assuming 24 for daily; I've only used hourly. It's entirely possible that you could go for days without selectclass matching, given that it's way more likely for it to not match. _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine