I like ARPG games,e.g. Baldur' Gate.
In the game,at first you must roll to decide your character's 6 attribute.It use 3 dices which each has 6 sides.
We can write a program to realize it.
It's a simple program,but every thing comes from simple.
/* the array use to save 6 attribute*/
/*use to save the random numerical value */
/*The "do...while" use to save the attribute value to array*/
We can expand it ,also can make more functions.
[code][/code]tagged by Salem