If by randomly, you mean can it be hacked overnight if it's asleep - no.
Having said that, you can get hacked by visiting less reputable sites (porn is notorious for this), opening unsolicited attachments in emails, inserting unknown USB drives into your PC or installing unscrupulous software...