Changed random variables.

Changed the way random variables are implemented. A simple dice game
called Pig is added to test this.