Generate a number up to the names.length which is 5