How can a totally logical machine like a computer generate a random number?

Have you wondered how a random number is generated in programming languages on a totally logical device like a Computer?

Recently I read an article about it which throws light on this interesting topic.