Primitive This is a game of chance based on choosing six numbers from an array of 49 possible numbers. In…