Here is a toy Palm program that will simulate rolling dice and graphing the resulting dice sums in columns. It's not really useful, but it does give a nice visual sense of the distribution you get when rolling dice. It allows you to choose the number of dice rolled at a time and the number of sides on the dice. I wrote it using OnBoardC, a compiler that runs directly on the Palm.
I've included the source for the program along with the executable. It's a nice example that shows how to write a fairly simple program.
Download Dice Dist for the Palm