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

def fill_with_rand(self):

    err_code = _cudamat.fill_with_rand(CUDAMatrix.rnd_state_p, self.p_mat)
    if err_code:
        raise generate_exception(err_code)
    return self
