Lines Matching defs:random
69 static void init_combinable(int numGroups, Combinable* combinable, SkRandom* random) {
70 SkScalar mergeProbability = random->nextUScalar1();
74 auto& group = groups[random->nextULessThan(numGroups)];
77 if (random->nextUScalar1() < mergeProbability) {
82 if (random->nextUScalar1() < mergeProbability) {
201 // For a given number of chainability groups, this is the number of random combinability reuslts
204 SkRandom random;
212 unsigned j = i + random.nextULessThan(kNumOps - i);
218 init_combinable(g, &combinable, &random);
250 #if 0 // Useful to repeat a random configuration that fails the test while debugger attached.