Search Space for Population Metaheuristic Optimization Problem
There are $|x|^{|y|}$ configurations.  Then you want to generate $N$ configurations.  By the same reasoning, there are $(|x|^{|y|})^N$ ways to do that.