Lines Matching refs:rand
51 SkRandom rand;
54 fTree->insert(reinterpret_cast<void*>(j), fProc(rand, j, NUM_BUILD_RECTS),
105 SkRandom rand;
108 fProc(rand, j, NUM_QUERY_RECTS),
115 SkRandom rand;
121 query.fLeft = rand.nextU() % GENERATE_EXTENTS;
122 query.fTop = rand.nextU() % GENERATE_EXTENTS;
127 query.fLeft = rand.nextU() % GENERATE_EXTENTS;
128 query.fTop = rand.nextU() % GENERATE_EXTENTS;
140 query.fLeft = rand.nextU() % GENERATE_EXTENTS;
141 query.fTop = rand.nextU() % GENERATE_EXTENTS;
142 query.fRight = query.fLeft + 1 + rand.nextU() % (GENERATE_EXTENTS / 2);
143 query.fBottom = query.fTop + 1 + rand.nextU() % (GENERATE_EXTENTS / 2);
163 static inline SkIRect make_XYordered_rects(SkRandom& rand, int index, int numRects) {
167 out.fRight = out.fLeft + 1 + rand.nextU() % (GENERATE_EXTENTS / 3);
168 out.fBottom = out.fTop + 1 + rand.nextU() % (GENERATE_EXTENTS / 3);
171 static inline SkIRect make_YXordered_rects(SkRandom& rand, int index, int numRects) {
175 out.fRight = out.fLeft + 1 + rand.nextU() % (GENERATE_EXTENTS / 3);
176 out.fBottom = out.fTop + 1 + rand.nextU() % (GENERATE_EXTENTS / 3);
180 static inline SkIRect make_random_rects(SkRandom& rand, int index, int numRects) {
182 out.fLeft = rand.nextS() % GENERATE_EXTENTS;
183 out.fTop = rand.nextS() % GENERATE_EXTENTS;
184 out.fRight = out.fLeft + 1 + rand.nextU() % (GENERATE_EXTENTS / 5);
185 out.fBottom = out.fTop + 1 + rand.nextU() % (GENERATE_EXTENTS / 5);