1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29:
| Random rnd = new Random(); int RndSizeBoxY = rnd.Next(10,80); int RndSizeBoxX = rnd.Next(10,80); Random rnd2 = new Random(); int RndPositionY = rnd.Next(0, 409); int RndPositionX = rnd.Next(0, 434); CubeOne.Size = new System.Drawing.Size(RndSizeBoxX, RndSizeBoxY); CubeOne.Location = new System.Drawing.Point(RndPositionX, RndPositionY);
Random CubeTwoRnd = new Random(); int RndSizeBoxY2 = CubeTwoRnd.Next(10, 80); int RndSizeBoxX2 = CubeTwoRnd.Next(10, 80); Random CubeTwo2 = new Random(); int RndPositionY2 = CubeTwo2.Next(0, 409); int RndPositionX2 = CubeTwo2.Next(0, 434); CubeTwo.Size = new System.Drawing.Size(RndSizeBoxX2, RndSizeBoxY2); CubeTwo.Location = new System.Drawing.Point(RndPositionX2, RndPositionY2);
Random random = new Random(); int RndSizeBoxY3 = random.Next(10, 80); int RndSizeBoxX3 = random.Next(10, 80); Random CubeThree2 = new Random(); int RndPositionY3 = CubeThree2.Next(0, 409); int RndPositionX3 = CubeThree2.Next(0, 434); CubeThree.Size = new System.Drawing.Size(RndSizeBoxX3, RndSizeBoxY3); CubeThree.Location = new System.Drawing.Point(RndPositionX3, RndPositionY3); |