y=lab.randperm(n) returns a randomly ordered nx1 tensor of the integers from 1 to n.