Computers cannot generate real random numbers, they instead use pseudorandom numbers. They take a seed from a random source (usually the computer clock), and then generate a sequence of numbers from it.