Added randomizeWith functionality.