randomize when stable
randomize edge mode