It does not exist.
If such a distribution existed, the distribution of $Y$ would have compact support, therefore its characteristic function would be entire. Moreover the characteristic function of the uniform distribution would be the $n$'th power of the characteristic function of the distribution of the $Y_i$. But the characteristic function of the uniform distribution on $[a,b]$ is $$ \phi(t) = \frac{e^{ibt} - e^{iat}}{it(b-a)}$$ which has simple zeros at $2 \pi n/(b-a)$ for nonzero integers $n$, and therefore does not have an $n$'th root that is analytic at those points.
If by "discrete case" you mean a discrete uniform distribution, a similar thing happens. The discrete uniform distribution on $0, 1, \ldots, m$, say, has characteristic function $(m+1)^{-1} (1 + e^{it} + e^{2it} + \ldots + e^{mit})$, which has simple zeros at $t = 2 \pi i k/m$ where $k$ is not a multiple of $m$, and thus this can't be the sum of $n$ iid random variables.