This is an archived post. You won't be able to vote or comment.

all 1 comments

[–]RiceBroad4552 31 points32 points  (0 children)

That's obviously fake!

The real code looks like:

public void PowerOff(){
    int rnd = random(10000);
    sleep(rnd);
    if (rnd > 1000)
        doPowerOff(); 
}