def fill_with_rand(self):
    """
    Fill matrix on the GPU with random numbers drawn from the uniform
    distribution over the (0,1) interval.
    """

    err_code = _eigenmat.fill_with_rand(EigenMatrix.rnd_state_p, self.p_mat) 
    if err_code:
      raise generate_exception(err_code)

    return self

    Fill matrix on the GPU with random numbers drawn from the uniform
    distribution over the (0,1) interval.
    
eigenmat/eigenmat.py