Please can anyone tell me how to compute a PDF for a (Multidimensional) Uniform distribution on a square as shown below?...
Uniform Distribution on Unit Square-uniform.jpg for a given theta (p,q) and a =2? Uniform Distribution on Unit Square-uniform2.jpg

I understand how to sample from a one dimensional uniform distribution, how can I extend it to the case in higher dimensions?

Thanks