I don't understand why the following code
dis = ProbabilityDistribution[1/(x^2 + 1), {x, -5, 5}];
data = RandomVariate[dis, 10^4];;
Show[
Histogram[data, 20, "ProbabilityDensity"],
Plot[PDF[dis, x], {x, -5, 5}, PlotStyle -> Thick],
PlotRange -> {{-5, 5}, {0, 1}}]
Produces only negative data points?
At the same time for the dis = NormalDistribution
it works fine.