Fleshing out the System class, added a proper random number generator.