Write Function to Generate N-array with some decimal place
>>> func(2,3) # 2d-array with 3 dp, sum those value to 1
[0.001],[0.999]
...
[0.999],[0.001]
>>> func(3,3)
[0.001],[0.001],[0.998]
....
[0.998],[0.001],[0.001]
I can create those array with when using nested of for loop. When n> 4, creating such array is slow and hard.