def rand(n, minVal=0.0, maxVal=1.0): """Create RVector of length n with normally distributed random numbers.""" r = pg.RVector(n) pg.rand(r, minVal, maxVal) return r