Dear community,
I tried to generate bivariate random numbers from the following code,
RandomVariate[
ProbabilityDistribution[
Piecewise[{{1/\[Pi], 0 <= Sqrt[x^2 + y^2] <= 1}}], {x, -1,
1}, {y, -1, 1}]]
but was given a response as follows,
RandomVariate::noimp: Sampling from ProbabilityDistribution[\[Piecewise] 1/\[Pi] 0<=Sqrt[Power[<<2>>]+Power[<<2>>]]<=1
0 True
,{\[FormalX]1,-1,1},{\[FormalX]2,-1,1}] is not implemented.
The ProbabilityDistribution was taken from an example from the Documentation Center and it worked well with Mean and StandardDeviation. Does anyone have ideas why it won't work for generating random numbers?
Many thanks,
Chi-Hsiang