private static int c(Item item, Random random) { Tuple tuple = (Tuple) bC.get(item); if (tuple == null) return 1; if (((Integer) tuple.a()).intValue() >= ((Integer) tuple.b()).intValue()) return ((Integer) tuple.a()).intValue(); else return ((Integer) tuple.a()).intValue() + random.nextInt(((Integer) tuple.b()).intValue() - ((Integer) tuple.a()).intValue()); }