Added an assert() line in the randomize() function

This was to ensure that randomize didn't create arrays
larger than MAX_SIZE.