Added option to supply a fixed random number seed for drawing pdist