style updates && prefixing srand() and time() with std:: because we are using <cstdlib> not <stdlib.h>. also changed references to const