Postgres Flatten Array Numpy Random Normal Distribution