Lines Matching defs:rnd
590 static void randomPartition (vector<IVec4>& dst, de::Random& rnd, int x, int y, int width, int height)
595 bool partition = rnd.getFloat() > 0.4f;
596 bool partitionX = partition && width > minWidth && rnd.getBool();
601 int split = width/2 + rnd.getInt(-width/4, +width/4);
602 randomPartition(dst, rnd, x, y, split, height);
603 randomPartition(dst, rnd, x+split, y, width-split, height);
607 int split = height/2 + rnd.getInt(-height/4, +height/4);
608 randomPartition(dst, rnd, x, y, width, split);
609 randomPartition(dst, rnd, x, y+split, width, height-split);
617 de::Random rnd(7);
618 randomPartition(dst, rnd, 0, 0, width, height);