Lines Matching defs:rnd
482 static void randomPartition (vector<IVec4>& dst, de::Random& rnd, int x, int y, int width, int height)
487 bool partition = rnd.getFloat() > 0.4f;
488 bool partitionX = partition && width > minWidth && rnd.getBool();
493 int split = width/2 + rnd.getInt(-width/4, +width/4);
494 randomPartition(dst, rnd, x, y, split, height);
495 randomPartition(dst, rnd, x+split, y, width-split, height);
499 int split = height/2 + rnd.getInt(-height/4, +height/4);
500 randomPartition(dst, rnd, x, y, width, split);
501 randomPartition(dst, rnd, x, y+split, width, height-split);
509 de::Random rnd(7);
510 randomPartition(dst, rnd, 0, 0, width, height);