solve the shuffle problem for HashSet