Substitute randperm in SGVector for permute in Math.