What is the name for this kind of combination problem?

32 Views Asked by At

I have $~n~$ positions to fill. At each position $~i~$, I have $~a_i~$ choices. So totally I have $$\Pi_{i=1}^{n} a_i$$ choices.

I want to know this because I want to search for code to enumerate each choice depending on user-specified $~n~$. But I don't know the name of the problem.