Program: 171328
Project: 171328
Buggy source:
public static void randomiseBody(GameCharacter character){
  if (Math.random() >= (character.isFeminine() ? 0.1f : 0.9f) || character.hasFetish(Fetish.FETISH_MASOCHIST)) {
    character.setPiercedEar(true);
    if (Math.random() <= 0.33f || character.hasFetish(Fetish.FETISH_MASOCHIST)) {
      character.setPiercedNavel(true);
    }
    if (Math.random() <= 0.19f || character.hasFetish(Fetish.FETISH_MASOCHIST)) {
      character.setPiercedNose(true);
    }
    if (Math.random() <= 0.1f || character.hasFetish(Fetish.FETISH_MASOCHIST)) {
      character.setPiercedTongue(true);
    }
    if (Math.random() <= 0.1f || character.hasFetish(Fetish.FETISH_MASOCHIST)) {
      character.setPiercedNipples(true);
    }
    if (Math.random() <= 0.1f || character.hasFetish(Fetish.FETISH_MASOCHIST)) {
      character.setPiercedLip(true);
    }
    if (character.hasPenis() && (Math.random() <= 0.05f || character.hasFetish(Fetish.FETISH_MASOCHIST))) {
      character.setPiercedPenis(true);
    }
    if (character.hasVagina() && (Math.random() <= 0.05f || character.hasFetish(Fetish.FETISH_MASOCHIST))) {
      character.setPiercedVagina(true);
    }
  }
  if (character.hasFetish(Fetish.FETISH_ANAL_RECEIVING) || character.getHistory() == History.PROSTITUTE) {
    character.setAssVirgin(false);
    character.setAssCapacity(character.getAssRawCapacityValue() * 1.2f,true);
    character.setAssStretchedCapacity(character.getAssRawCapacityValue());
  }
 else {
    character.setAssVirgin(true);
  }
  character.setHeight(character.getHeightValue() - 15 + Util.random.nextInt(30) + 1);
  if (Main.getProperties().multiBreasts == 0) {
    character.setBreastRows(1);
  }
 else   if (Main.getProperties().multiBreasts == 1) {
    if (character.getSkinType() == SkinType.HUMAN) {
      character.setBreastRows(1);
    }
  }
  if (character.hasBreasts()) {
    character.setBreastSize(Math.max(CupSize.AA.getMeasurement(),character.getBreastSize().getMeasurement() - 2 + (Util.random.nextInt(5))));
  }
  if (character.hasFetish(Fetish.FETISH_ORAL_GIVING)) {
    character.setFaceCapacity(Capacity.FIVE_ROOMY.getMedianValue(),true);
    character.setFaceStretchedCapacity(character.getFaceRawCapacityValue());
    character.setFaceVirgin(false);
  }
 else {
    if (Math.random() > 0.15f) {
      character.setFaceVirgin(true);
    }
 else {
      character.setFaceVirgin(false);
    }
  }
  character.setHairLength(character.getHairLength().getMinimumValue() + Util.random.nextInt(character.getHairLength().getMaximumValue() - character.getHairLength().getMinimumValue()) + 1);
  if (character.hasPenis()) {
    character.setPenisVirgin(false);
    if ((character.getGender() == Gender.F_P_TRAP || character.getGender() == Gender.N_P_TRAP) && Math.random() >= 0.1f) {
      character.setPenisSize(PenisSize.ONE_TINY.getMinimumValue() + Util.random.nextInt(character.getPenisSize().getMaximumValue() - character.getPenisSize().getMinimumValue()) + 1);
      character.setTesticleSize(TesticleSize.ONE_TINY.getValue());
      character.setCumProduction(CumProduction.ONE_TRICKLE.getMedianValue());
    }
 else {
      character.setPenisSize(character.getPenisSize().getMinimumValue() + Util.random.nextInt(character.getPenisSize().getMaximumValue() - character.getPenisSize().getMinimumValue()) + 1);
    }
  }
  if (character.hasVagina()) {
    if (character.hasFetish(Fetish.FETISH_PURE_VIRGIN)) {
      character.setVaginaVirgin(true);
      int capacity=Capacity.ZERO_IMPENETRABLE.getMinimumValue() + Util.random.nextInt(Capacity.TWO_TIGHT.getMaximumValue() - Capacity.ZERO_IMPENETRABLE.getMinimumValue());
      character.setVaginaCapacity(capacity,true);
    }
 else {
      if (Math.random() > 0.25f || character.getHistory() == History.PROSTITUTE) {
        character.setVaginaVirgin(false);
        character.setVaginaCapacity(character.getVaginaRawCapacityValue() * 1.2f,true);
        character.setVaginaStretchedCapacity(character.getVaginaRawCapacityValue());
      }
 else {
        character.setVaginaVirgin(true);
      }
    }
    character.setVaginaWetness(character.getVaginaWetness().getValue() - 1 + Util.random.nextInt(3));
  }
  character.setAssStretchedCapacity(character.getAssRawCapacityValue());
  character.setNippleStretchedCapacity(character.getNippleRawCapacityValue());
  character.setFaceStretchedCapacity(character.getFaceRawCapacityValue());
  character.setPenisStretchedCapacity(character.getPenisRawCapacityValue());
  character.setVaginaStretchedCapacity(character.getVaginaRawCapacityValue());
}

Fixed version (ground truth):
public static void randomiseBody(GameCharacter character){
  if (Math.random() >= (character.isFeminine() ? 0.1f : 0.9f) || character.hasFetish(Fetish.FETISH_MASOCHIST)) {
    character.setPiercedEar(true);
    if (Math.random() <= 0.33f || character.hasFetish(Fetish.FETISH_MASOCHIST)) {
      character.setPiercedNavel(true);
    }
    if (Math.random() <= 0.19f || character.hasFetish(Fetish.FETISH_MASOCHIST)) {
      character.setPiercedNose(true);
    }
    if (Math.random() <= 0.1f || character.hasFetish(Fetish.FETISH_MASOCHIST)) {
      character.setPiercedTongue(true);
    }
    if (Math.random() <= 0.1f || character.hasFetish(Fetish.FETISH_MASOCHIST)) {
      character.setPiercedNipples(true);
    }
    if (Math.random() <= 0.1f || character.hasFetish(Fetish.FETISH_MASOCHIST)) {
      character.setPiercedLip(true);
    }
    if (character.hasPenis() && (Math.random() <= 0.05f || character.hasFetish(Fetish.FETISH_MASOCHIST))) {
      character.setPiercedPenis(true);
    }
    if (character.hasVagina() && (Math.random() <= 0.05f || character.hasFetish(Fetish.FETISH_MASOCHIST))) {
      character.setPiercedVagina(true);
    }
  }
  if (character.hasFetish(Fetish.FETISH_ANAL_RECEIVING) || character.getHistory() == History.PROSTITUTE) {
    character.setAssVirgin(false);
    character.setAssCapacity(character.getAssRawCapacityValue() * 1.2f,true);
    character.setAssStretchedCapacity(character.getAssRawCapacityValue());
  }
 else {
    character.setAssVirgin(true);
  }
  character.setHeight(character.getHeightValue() - 15 + Util.random.nextInt(30) + 1);
  if (Main.getProperties().multiBreasts == 0) {
    character.setBreastRows(1);
  }
 else   if (Main.getProperties().multiBreasts == 1) {
    if (character.getSkinType() == SkinType.HUMAN) {
      character.setBreastRows(1);
    }
  }
  if (character.hasBreasts()) {
    character.setBreastSize(Math.max(CupSize.AA.getMeasurement(),character.getBreastSize().getMeasurement() - 2 + (Util.random.nextInt(5))));
  }
  if (character.hasFetish(Fetish.FETISH_ORAL_GIVING) || character.getHistory() == History.PROSTITUTE) {
    character.setFaceCapacity(Capacity.FIVE_ROOMY.getMedianValue(),true);
    character.setFaceStretchedCapacity(character.getFaceRawCapacityValue());
    character.setFaceVirgin(false);
  }
 else {
    if (Math.random() > 0.15f) {
      character.setFaceVirgin(true);
    }
 else {
      character.setFaceVirgin(false);
    }
  }
  if (Math.random() <= 0.2f && !character.getHairCovering().getType().getDyePatterns().isEmpty()) {
    character.setHairCovering(new Covering(character.getHairCovering().getType(),character.getHairCovering().getType().getDyePatterns().get(Util.random.nextInt(character.getHairCovering().getType().getDyePatterns().size())),character.getHairCovering().getType().getAllPrimaryColours().isEmpty() ? character.getHairCovering().getPrimaryColour() : character.getHairCovering().getType().getAllPrimaryColours().get(Util.random.nextInt(character.getHairCovering().getType().getAllPrimaryColours().size())),Math.random() <= 0.05f,character.getHairCovering().getType().getAllSecondaryColours().isEmpty() ? character.getHairCovering().getSecondaryColour() : character.getHairCovering().getType().getAllSecondaryColours().get(Util.random.nextInt(character.getHairCovering().getType().getAllSecondaryColours().size())),Math.random() <= 0.05f),true);
  }
  if (character.getHairRawLengthValue() != 0 || (character.getFaceType() == FaceType.ALLIGATOR_MORPH && Math.random() <= 0.2f)) {
    character.setHairLength(character.getHairLength().getMinimumValue() + Util.random.nextInt(character.getHairLength().getMaximumValue() - character.getHairLength().getMinimumValue()) + 1);
  }
  if (character.hasPenis()) {
    character.setPenisVirgin(false);
    if ((character.getGender() == Gender.F_P_TRAP || character.getGender() == Gender.N_P_TRAP) && Math.random() >= 0.1f) {
      character.setPenisSize(PenisSize.ONE_TINY.getMinimumValue() + Util.random.nextInt(character.getPenisSize().getMaximumValue() - character.getPenisSize().getMinimumValue()) + 1);
      character.setTesticleSize(TesticleSize.ONE_TINY.getValue());
      character.setCumProduction(CumProduction.ONE_TRICKLE.getMedianValue());
    }
 else {
      character.setPenisSize(character.getPenisSize().getMinimumValue() + Util.random.nextInt(character.getPenisSize().getMaximumValue() - character.getPenisSize().getMinimumValue()) + 1);
    }
  }
  if (character.hasVagina()) {
    if (character.hasFetish(Fetish.FETISH_PURE_VIRGIN) && character.getHistory() != History.PROSTITUTE) {
      character.setVaginaVirgin(true);
      int capacity=Capacity.ZERO_IMPENETRABLE.getMinimumValue() + Util.random.nextInt(Capacity.TWO_TIGHT.getMaximumValue() - Capacity.ZERO_IMPENETRABLE.getMinimumValue());
      character.setVaginaCapacity(capacity,true);
    }
 else {
      if (Math.random() > 0.25f || character.getHistory() == History.PROSTITUTE) {
        character.setVaginaVirgin(false);
        character.setVaginaCapacity(character.getVaginaRawCapacityValue() * 1.2f,true);
        character.setVaginaStretchedCapacity(character.getVaginaRawCapacityValue());
      }
 else {
        character.setVaginaVirgin(true);
      }
    }
    character.setVaginaWetness(character.getVaginaWetness().getValue() - 1 + Util.random.nextInt(3));
  }
  character.setAssStretchedCapacity(character.getAssRawCapacityValue());
  character.setNippleStretchedCapacity(character.getNippleRawCapacityValue());
  character.setFaceStretchedCapacity(character.getFaceRawCapacityValue());
  character.setPenisStretchedCapacity(character.getPenisRawCapacityValue());
  character.setVaginaStretchedCapacity(character.getVaginaRawCapacityValue());
}