Add srand() to handle fn for Goodies using rand()