new Random().nextInt()(max-min+1)+min
``
private BigDecimal getPrice(BigDecimal p1, BigDecimal p2){
if(p1.compareTo(p2) == 0)return p1;
if(p1.compareTo(p2) > 0){
return p2.add((p1.subtract(p2).multiply( new BigDecimal(new Random().nextDouble()))));
}else{
return p1.add((p2.subtract(p1).multiply( new BigDecimal(new Random().nextDouble()))));
}
}