Hello,
You're not even telling which software to use... What have you tried ?
Help please. Thanks.
Use rejection sampling to draw 1000 samples from a Beta(3,5) distribution. Compute Monte
Carlo estimates of the mean, median, and variance of the distribution and compare them to
the theoretical values (or to the value from R for the median).