Updated math and rand libraries to use double.
Changed namespaces to be all lower, to follow established style, changed sample Duck programs to reflect that. rand.rand() became rand.randint() as rand.rand() seems to cause errors in Duck.