Copy the above files in a folder and run Dice.exe , To see the source code open main.lua Press "0" to generate pattern - 10000 Squares - 480 Selectors Press "S" to throw dice or modify the Object.name ...