Overlapping groups + random matrix generation