add random perm intialization