(self, z, normal=True)
Fill z with either uniform or normally distributed random numbers
Fill z with either uniform or normally distributed random numbers
Fill z with either uniform or normally distributed random numbers
def fill_noise(self, z, normal=True):
        """
        Fill z with either uniform or normally distributed random numbers
        """
        if normal:
            # Note fill_normal is not deterministic
            self.be.fill_normal(z)
        else:
            z[:] = 2 * self.be.rand() - 1.
def fill_noise ( self , z , normal = True ) : if normal : # Note fill_normal is not deterministic self . be . fill_normal ( z ) else : z [ : ] = 2 * self . be . rand ( ) - 1.