## Uniform Distribution on Unit Square

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

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

Thanks