to go through a period of wild behaviour while young, especially having a lot of romantic or sexual relationships
sow (your) wild oats
to go through a period of wild behaviour while young, especially having a lot of romantic or sexual relationships
Definitions from the Oxford Advanced Learner's Dictionary, 9th edition