Just to provide other insights. RandomPoint as per MichaelE2 versus user defined probability distribution and confirmation desired marginal distribution:
pd = ProbabilityDistribution[
Piecewise[{{1/Pi, 0 < x^2 + y^2 <= 1}}], {x, -1, 1}, {y, -1, 1}]
md = MarginalDistribution[pd, 1]
PDF[md, x]
Show[Histogram3D[pts = RandomPoint[Disk[], 100000], Automatic, "PDF"],
Plot3D[PDF[pd, {x, y}], {x, -1, 1}, {y, -1, 1},
PlotStyle -> {Blue, Opacity[0.5]}, Mesh -> None]]
Show[Histogram[pts[[All, 1]], Automatic, "PDF"],
Plot[PDF[md, x], {x, -1, 1}]]
