How to generate the sample point of uniform distribution in two dimensional case,
if I use
seed=123;
n=100;
dim=2;
x=uniform(repeat(seed,n,dim));
I only can get the matrix with two column, which each column is uniform distributed, but it is not guarantee that the combination of the point is uniformly distributed in the 2-D.