Add randomization to search (issue #22).