I have a game idea that I am having problems prototyping.

The game is made up of 100 square cards each divided into quadrants with each quadrant filled with one of 10 images. Being that that is 400 total images I want each of the 10 images to appear 40 times but have all the cards combos be unique.

Does anyone have I simple solution to do this, my brain is aching.

The problem is there are 5040 different combos if none of them appear on a card more then once. Plus there is the duplicate combos to weed out.

a,b,c,d = b,a,d,c

I am already working with a spreadsheet and giving each image a unique value like in binary 1,2,4,8,16,32 etc.. so that when they are added you only need to compare numeric value of the set to know that they are a unique set. I was hoping there was a simpler and less time consuming way.