@Rabbival507
The Pitch Class Set Theory is a harmonic languages developed in the XX century in which the most important is the intervalic relationships between the elements of the set (pitches).
The starting point is a series of pitches (from one to twelve although you can do little with only one). Let's say: C - Db - F - A... this set is defined by the intervals between the notes (minor second, major third, major third). There are lots of different operations and relationships you can do with it. Transposition, inversion, complementary sets, subsets, supersets, Z-related..... and a long etc....
In summary, it's a different way to organize the pitches to write music.
And no, this is not a music you make "by chance" and where "everything is OK". You must control it to express what you want, and not the opposite.
From 1900 on, there was a Big Bang of musical languages... (Not only impressionism and atonalism).