In Nielsen and Chuang, when talking about the Deutsch–Jozsa algorithm. The Deutsch’s problem is described as the following game.
Alice, in Amsterdam, selects a number x from 0 to $2^n − 1$, and mails it in a letter to Bob, in Boston...
Is there an underlying reason why we use numbers from 0 to $2^n − 1$ or it's just a random choice?