Switched everything over to use c++11 random instead of rand