// creates random BigDecimal \in [1,100]
private BigDecimal randBD() {
BigDecimal max = new BigDecimal(100d);
BigDecimal min = new BigDecimal(1d);
BigDecimal range = max.subtract(min);
BigDecimal result = min .add(range.multiply(new BigDecimal(Math.random())));
return result;
}
No comments:
Post a Comment