Is it possible to map a uniform, discrete distribution over two integers $A$, $B$ (lower and upper bounds respectively) onto $[A^*, B^*]$ while keeping the distribution discrete uniform? We may assume $|A - B| > |A^* - B^*|$.
Based on my research, it seems like location and scale families do preserve the uniformity for continuous uniform distributions, but I can't understand how that would be true if I were to choose transformations with noncommon divisors like a uniform {1, 2, 3, 4, 5, 6, 7, 8, 9, 10} distribution into a uniform {1, 2, 3, 4, 5, 6, 7} distribution. Is there a change of variable formula to obtain such a distribution?