public Value sample(){
  int index=sampler.nextInt(actionValues.size());
  if (actionValuesAsArray == null) {
    actionValuesAsArray=actionValues.toArray(new Value[actionValues.size()]);
  }
  return actionValuesAsArray[index];
}

public Value sample ( ) { int index = sampler . nextInt ( actionValues . size ( ) ) ; if ( actionValuesAsArray == null ) { actionValuesAsArray = actionValues . toArray ( new Value [ actionValues . size ( ) ] ) ; } return actionValuesAsArray [ index ] ; }
returns a sample point for the action , assuming a uniform distribution over the action values
