Hi,
Your answer is correct.
If U=U1*...*Un where Ui are i.i.d, it is usually easier to switch to the
logarithm, e.g. X=-ln U and Xi=-ln Ui, where X=X1+...+Xn.
If Ui are uniform on [0,1], then Xi=-ln Ui have the exponential
distribution (Xi~exp(-x)). Adding n of these together gives you a
gamma-distribution X~x^{n-1}*exp(-x)/Gamma(n) where Gamma(n)=(n-1)!.
Convert back to U=exp(-X), and you get U~(-ln u)^{n-1}/Gamma(n).
Einar