I have some code, which gives me uniformly distributed points in d dimensions, inside a cube from min to max.
Let's take D = 2, min = - 1 and max = 1. The cube is actually a unit square. Let's generate 5 points.
What I would like to do, is to get, uniformly distributed, the points that lie in the boundaries of the D - cube.Code:Generating 5 random points in a cube in 2D, coordinates from -1 to 1 -0.109367 0.749923 0.151204 0.859457 0.364111 0.94229 -0.740006 -0.497918 -0.111803 0.289617
I thought about generating the points with the code I have unitl now and simply replacing a coordinate with min or max. This will produce boundary points, but are they uniformly distributed? Take as granted, that the points that are generated already are uniformly distributed!
Thanks in advance