Uniformly distributed data in d dimensions
You can import the random module and call random.random to get a random sample from [0, 1). You can double that and subtract 1 to get a sample from [-1, 1). 
Draw d values this way and the tuple will be a uniform draw from the cube [-1, 1)^d.
How can I generate a uniformly distributed [-1,1]^d data in Python? E.g. d is a dimension like 10.
I know how to generate uniformly distributed data like  np.random.randn(N) but dimension thing is confused me a lot.