code: private String getName(List<? extends Name> list, double probability) {
          Name name = getNameObject(list, probability * getMax(list));
          return name.getValue();
      }
docs: Finds name at a given cumulative probability accounting for gaps.
  
  @param list        The list to look for name in
  @param probability the cumulative probability to search for (between 0 and 1)
  @return the name