Go Through Recently-installed Items
There are chances of your computer not having the required configuration to run certain software or support some of the hardware devices. To ensure that this is not the case, uninstall any newly installed software or hardware to see if the problem still persists. If your computer still freezes randomly, then it is due to a different reason.