vars = Array[Subscript[x, #] &, 7]; lits = Join[vars, Not /@ vars]; SeedRandom[0]; Style[TraditionalForm[ expr = Or @@ Table[And @@ RandomSample[lits, 5], {150}]], 6]
BooleanMinimize[expr]