How the nonrandom distribution of nuclei affects the island density in thin-film growth