protected double slightlyModifyDistance ( double distance ) { double distanceModification = random . nextDouble ( ) * .1 * distance ; if ( random . nextBoolean ( ) ) distanceModification = - distanceModification ; return distance + distanceModification ; }
Modifies the Distance up to + - 10%