class Rat {

	private static BigFraction biasedRandom(boolean biased, int bias, BigFraction min, BigFraction max) {
		double drnd = biased ? bias(oracle.nextDouble(),bias) : oracle.nextDouble();
		BigDecimal rnd = BigDecimal.valueOf(drnd);
		BigFraction r = BigFraction.valueOf(rnd);
		BigFraction offset = (max.subtract(min)).multiply(r);
		BigFraction res = min.add(offset);
		return res;
	}

}