How to put a value and an image of a card on an array of cards and then assign them randomly to buttons
For my assignment I have to put make a grid 4x4 card memory game that allows you to click on a button to reveal a card, and then click on another button to reveal a card. If the cards match then the you get a score of three points, if they dont they are both turned upside down again and you lose a point.

The main problem that I am having is that I dont know how to assign a value and an image to each card for the score.

Another problem I have is how to assign these to the buttons, as well as assign them randomly to the buttons. 

Help would be very much appreciated! 
How to put a value and an image of a card on an array of cards and then assign them randomly to buttons
===

For my assignment I have to put make a grid 4x4 card memory game that allows you to click on a button to reveal a card, and then click on another button to reveal a card. If the cards match then the you get a score of three points, if they dont they are both turned upside down again and you lose a point.

The main problem that I am having is that I dont know how to assign a value and an image to each card for the score.

Another problem I have is how to assign these to the buttons, as well as assign them randomly to the buttons. 

Help would be very much appreciated! 