Fixed a bug in randomArray() that would cause excluded numbers to be
added to an existing array, if one was given.