If you do not know how to play SET, then look here: http://en.wikipedia.org/wiki/Set_(game) This is an interesting question in probability. :D The rest is self explanatory. I had a few ideas for calculating it using only math, but I am not sure which is right. This is a good way to check.
If you found this project useful and want to see other stuff, you can follow me if you want. :) WARNING: If the speed or # of attributes is too high this will lag a lot!