Simple dice

A comment and a question.

The switch/case statement is intended for this kind of usage over the long string of if/else. Accomplishes the same thing...just looks prettier.

If I'm correct, you're seeding the random number generator with the value of the analog input port. I'm curious why you took that approach. With no inputs attached, does the value of the analog port really vary that much? In theory, one would think it would be zero if there were nothing attached to it. Or did I misread something?