'pc randomly restarts' isn't enough info.
Need to know when the restarts happen, if a blue screen appears before it shuts down and your specs pls.
No BSOD, the screen just turns black and restarts,
A8-6600K
GTX 760 ASUS DirectCUII
MSI-FM2-A75MA-E35
Corsair CX750M
8GB Crucial BallistX 1600mHz RAM
all in an NZXT H230