For example I got 9 sprite with different color. Everytime I click refresh I want to generate a random sprite in a position like the image below. But I don't want the sprite/color to duplicate.
<img src="http://i.imgur.com/iQNMwvD.png" border="0" />
This tutorial could help you.
Develop games in your browser. Powerful, performant & highly capable.
cvp omg! thanks a lot :)