Assume that $h(S)$ is a realvalued function of a random variable with distribution $Erlang(n,\theta)$ (h(S) not depending on $\theta$). Then conclude from $\mathbb{E}(h(S))=0$ almost surely that $h(S)=0$ a.s..
Clearly it would suffice to show the conclusion from $\int h(S) s^{n-1}e^{-\theta s}ds = 0$. However I don't see how to prove this.
My idea was to use two different arbitrary values of the parameter $\theta$ to get a contradiction for $h(S)\not = 0$ since $h(S)$ cannot depend on $\theta$. However I wasn't successful so far with this approach. Does anybody have hint?