Dave, Thanks for your input . . . you were right in "check the function prototype at the top of the code to be sure it matches the function definition." I had Randomize declared as prototype "void Randomize( short range);" which should be "short Randomize( short range);. An error on…