Build a machine to generate a random number.