My PC randomly shuts off...

Aug 3, 2018
3
0
10
My PC randomly shuts off.

This all started about a year ago, but Its been fixing And breaking itself again and again. My PC just shuts off when i play games, watch youtube, try installing something. As i already mentioned this problem just fixes itself after not using the PC for about two days, so i never really Paid too much attention to it. But now It keeps shutting off... Any ideas what could cause this?