One method for sampling weight vectors