Added random subset of the data for use in determining threshold