Lines Matching refs:rand
47 SkRandom rand; in make_cubic_path() local
50 float x = std::ldexp(rand.nextF(), (i % maxPow2)) / 1e3f; in make_cubic_path()
58 SkRandom rand; in make_conic_path() local
62 const float x = std::ldexp(rand.nextF(), (i % 18)) / 1e3f; in make_conic_path()
63 const float w = std::ldexp(1 + rand.nextF(), j); in make_conic_path()
71 SkRandom rand; in make_quad_path() local
74 float x = std::ldexp(rand.nextF(), (i % maxPow2)) / 1e3f; in make_quad_path()
81 SkRandom rand; in make_line_path() local
84 float x = std::ldexp(rand.nextF(), (i % maxPow2)) / 1e3f; in make_line_path()
274 SkRandom rand; in make_motionmark_paths() local
278 int numVerbs = 28 - SkNextLog2(rand.nextRangeU(0, (1 << 27) - 1)); in make_motionmark_paths()
281 switch (rand.nextU() & 3) { in make_motionmark_paths()
284 path.lineTo(rand.nextRangeF(0, 150), rand.nextRangeF(0, 150)); in make_motionmark_paths()
287 if (rand.nextULessThan(10) == 0) { in make_motionmark_paths()
292 path.quadTo(x + rand.nextRangeF(0, 150), y, x - rand.nextRangeF(0, 150), y); in make_motionmark_paths()
294 path.quadTo(rand.nextRangeF(0, 150), rand.nextRangeF(0, 150), in make_motionmark_paths()
295 rand.nextRangeF(0, 150), rand.nextRangeF(0, 150)); in make_motionmark_paths()
299 if (rand.nextULessThan(10) == 0) { in make_motionmark_paths()
303 path.cubicTo(rand.nextRangeF(0, 150), y, rand.nextRangeF(0, 150), y, in make_motionmark_paths()
304 rand.nextRangeF(0, 150), y); in make_motionmark_paths()
306 path.cubicTo(rand.nextRangeF(0, 150), rand.nextRangeF(0, 150), in make_motionmark_paths()
307 rand.nextRangeF(0, 150), rand.nextRangeF(0, 150), in make_motionmark_paths()
308 rand.nextRangeF(0, 150), rand.nextRangeF(0, 150)); in make_motionmark_paths()
316 float strokeWidth = 21 - log2f(rand.nextRangeF(0, 1 << 20)); in make_motionmark_paths()