Lines Matching defs:rnd
495 static void randomPartition (vector<IVec4>& dst, de::Random& rnd, int x, int y, int width, int height)
500 bool partition = rnd.getFloat() > 0.4f;
501 bool partitionX = partition && width > minWidth && rnd.getBool();
506 int split = width/2 + rnd.getInt(-width/4, +width/4);
507 randomPartition(dst, rnd, x, y, split, height);
508 randomPartition(dst, rnd, x+split, y, width-split, height);
512 int split = height/2 + rnd.getInt(-height/4, +height/4);
513 randomPartition(dst, rnd, x, y, width, split);
514 randomPartition(dst, rnd, x, y+split, width, height-split);
522 de::Random rnd(7);
523 randomPartition(dst, rnd, 0, 0, width, height);