Program: 171286
Project: 171286
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 (Math.random() <= 0.015f) {
      character.setBreastMilkStorage((int)((character.getBreastSize().getMeasurement() * 5) * (1 + (Math.random() * 2))));
      if (Math.random() <= 0.025f) {
        character.addMilkModifier(FluidModifier.ADDICTIVE);
      }
      if (Math.random() <= 0.025f) {
        character.addMilkModifier(FluidModifier.HALLUCINOGENIC);
      }
    }
  }
  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.getCovering(character.getHairType().getBodyCoveringType()).getType().getDyePatterns().isEmpty()) {
    Covering currentCovering=character.getCovering(character.getHairType().getBodyCoveringType());
    character.setHairCovering(new Covering(currentCovering.getType(),currentCovering.getType().getDyePatterns().get(Util.random.nextInt(currentCovering.getType().getDyePatterns().size())),currentCovering.getType().getAllPrimaryColours().isEmpty() ? currentCovering.getPrimaryColour() : currentCovering.getType().getAllPrimaryColours().get(Util.random.nextInt(currentCovering.getType().getAllPrimaryColours().size())),Math.random() <= 0.05f,currentCovering.getType().getAllSecondaryColours().isEmpty() ? currentCovering.getSecondaryColour() : currentCovering.getType().getAllSecondaryColours().get(Util.random.nextInt(currentCovering.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 (Math.random() <= 0.005f) {
      character.addCumModifier(FluidModifier.ADDICTIVE);
    }
    if (Math.random() <= 0.005f) {
      character.addCumModifier(FluidModifier.HALLUCINOGENIC);
    }
  }
  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));
    if (Math.random() <= 0.005f) {
      character.addGirlcumModifier(FluidModifier.ADDICTIVE);
    }
    if (Math.random() <= 0.005f) {
      character.addGirlcumModifier(FluidModifier.HALLUCINOGENIC);
    }
  }
  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 (Math.random() <= 0.015f) {
      character.setBreastMilkStorage((int)((character.getBreastSize().getMeasurement() * 5) * (1 + (Math.random() * 2))));
      if (Math.random() <= 0.025f) {
        character.addMilkModifier(FluidModifier.ADDICTIVE);
      }
      if (Math.random() <= 0.025f) {
        character.addMilkModifier(FluidModifier.HALLUCINOGENIC);
      }
    }
  }
  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.getCovering(character.getHairType().getBodyCoveringType(character)).getType().getDyePatterns().isEmpty()) {
    Covering currentCovering=character.getCovering(character.getHairType().getBodyCoveringType(character));
    character.setHairCovering(new Covering(currentCovering.getType(),currentCovering.getType().getDyePatterns().get(Util.random.nextInt(currentCovering.getType().getDyePatterns().size())),currentCovering.getType().getAllPrimaryColours().isEmpty() ? currentCovering.getPrimaryColour() : currentCovering.getType().getAllPrimaryColours().get(Util.random.nextInt(currentCovering.getType().getAllPrimaryColours().size())),Math.random() <= 0.05f,currentCovering.getType().getAllSecondaryColours().isEmpty() ? currentCovering.getSecondaryColour() : currentCovering.getType().getAllSecondaryColours().get(Util.random.nextInt(currentCovering.getType().getAllSecondaryColours().size())),Math.random() <= 0.05f),true);
  }
  if (character.getHairRawLengthValue() != 0) {
    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 (Math.random() <= 0.005f) {
      character.addCumModifier(FluidModifier.ADDICTIVE);
    }
    if (Math.random() <= 0.005f) {
      character.addCumModifier(FluidModifier.HALLUCINOGENIC);
    }
  }
  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));
    if (Math.random() <= 0.005f) {
      character.addGirlcumModifier(FluidModifier.ADDICTIVE);
    }
    if (Math.random() <= 0.005f) {
      character.addGirlcumModifier(FluidModifier.HALLUCINOGENIC);
    }
  }
  character.setAssStretchedCapacity(character.getAssRawCapacityValue());
  character.setNippleStretchedCapacity(character.getNippleRawCapacityValue());
  character.setFaceStretchedCapacity(character.getFaceRawCapacityValue());
  character.setPenisStretchedCapacity(character.getPenisRawCapacityValue());
  character.setVaginaStretchedCapacity(character.getVaginaRawCapacityValue());
}