Added ability to specify random seed at parameter selection.