Lines Matching defs:rnd
551 static void randomPartition (vector<IVec4>& dst, de::Random& rnd, int x, int y, int width, int height)
556 bool partition = rnd.getFloat() > 0.4f;
557 bool partitionX = partition && width > minWidth && rnd.getBool();
562 int split = width/2 + rnd.getInt(-width/4, +width/4);
563 randomPartition(dst, rnd, x, y, split, height);
564 randomPartition(dst, rnd, x+split, y, width-split, height);
568 int split = height/2 + rnd.getInt(-height/4, +height/4);
569 randomPartition(dst, rnd, x, y, width, split);
570 randomPartition(dst, rnd, x, y+split, width, height-split);
578 de::Random rnd(7);
579 randomPartition(dst, rnd, 0, 0, width, height);