Randomize button!

Also, performance improvement to avoid updating preview window
unnecessarily.