In reply to GanBa:
randc does not guarantee uniqueness across multiple array elements. It only ensures that in successive randomizations, a different solution is provided until all possible solutions are exhausted. You only call randomize() once.
You might want to read Redirecting…