Moved srand() call to new seedRand() function.