My computer was randomly restarting while gaming. After a few tests, I thought the power supply was the problem so i took the PC to a friend's house and used his oower supply and it worked fine. Then i used my own power supply and it was working fine too. When I came back and used my setup again, the problem came back. The only thing different at my friend's house were the peripherals and external cable so could the problem be a faulty power supply cable or a problem with the house power or something else (i ruled out faulty socket and extension)