This function implements pseudo-random number generation for a non-central chi-squared distribution with pdf
$$f(x|\lambda,\nu)=\frac{e^{-(x+\lambda)/2}x^{\nu/2-1}}{2^{\nu/2}} \sum_{k=0}^{\infty} \frac{(\lambda x)^{k}}{4^{k}k!\Gamma(k+\nu/2)}$$
for \(0 \leq x < \infty\), \(\lambda>0\), and \(\nu>1\), where \(\lambda\) is the non-centrality parameter and \(\nu\) is the degrees of freedom.