Lines Matching refs:rand
21 static void rnd_rect(SkRect* r, SkPaint* paint, SkLCGRandom& rand) {
22 SkScalar x = rand.nextUScalar1() * W;
23 SkScalar y = rand.nextUScalar1() * H;
24 SkScalar w = rand.nextUScalar1() * (W >> 2);
25 SkScalar h = rand.nextUScalar1() * (H >> 2);
26 SkScalar hoffset = rand.nextSScalar1();
27 SkScalar woffset = rand.nextSScalar1();
32 paint->setColor(rand.nextU());
68 SkLCGRandom rand;
71 rnd_rect(&r, &paint, rand);
73 rnd_rect(&r, &paint, rand);
75 rnd_rect(&r, &paint, rand);
88 SkLCGRandom rand;
91 SkScalar x = rand.nextUScalar1() * (W >> 1);
92 SkScalar y = rand.nextUScalar1() * (H >> 1);
132 SkLCGRandom rand;
135 rnd_rect(&r, &paint, rand);