public static void randomizeWeightsInPlace(Counter<String> wts,double scale){
  for (  String feature : wts.keySet()) {
    double epsilon=Math.random() * scale;
    double newValue=wts.getCount(feature) + epsilon;
    wts.setCount(feature,newValue);
  }
}

public static void randomizeWeightsInPlace ( Counter < String > wts , double scale ) { for ( String feature : wts . keySet ( ) ) { double epsilon = Math . random ( ) * scale ; double newValue = wts . getCount ( feature ) + epsilon ; wts . setCount ( feature , newValue ) ; } }
add a scaled ( positive ) random vector to a weights vector .
