class TargetPeerRange {

  public int getRandomlySelectedPeersToDrop(
      final int currentRandomlySelectedPeerCount, final int currentTotalPeerCount) {
    final int totalPeersToDrop = getPeersToDrop(currentTotalPeerCount);
    if (totalPeersToDrop == 0) {
      return 0;
    }
    return currentRandomlySelectedPeerCount > minimumRandomlySelectedPeerCount
        ? Math.min(
            currentRandomlySelectedPeerCount - minimumRandomlySelectedPeerCount, totalPeersToDrop)
        : 0;
  }

  public  TargetPeerRange(
      final int addPeersWhenLessThan,
      final int dropPeersWhenGreaterThan,
      final int minimumRandomlySelectedPeerCount);

}