Added min/max functions to the math library. Fixed a bug where the random number generator would crash due to uninitialized variables.