- inserted a call to srand() in main() to set a seed for the random
  generator.