{{searchResults.length}} {{searchResults.length === 1 ? 'result' : 'results'}} for “{{searchWords}}”No results found for “{{searchWords}}”× back to contents
Such a number is determined by its two digits and, for each of the four places, which of the two digits goes there; both digits must be used.
Neither digit is $0$: there are $\binom92=36$ pairs of digits. Each place can take either digit, giving $2^4=16$ strings, minus the $2$ strings that use only one digit. That is $36\cdot14=504$ numbers.
One digit is $0$ and the other is $x$ ($9$ choices): the first digit must be $x$. The other three places take $0$ or $x$, but not all $x$: $2^3-1=7$ ways. That is $9\cdot7=63$ numbers.