Double sum = 0.0;
final int servicesCount = 2 + r.nextInt() % 100;
for (int i = 0; i < servicesCount; i++) {
final UniqueService s = new UniqueService();
s.quantity = r.nextInt(100);
s.price = Math.abs(r.nextDouble() % 10000.0);
s.discount = r.nextInt(10);
services.add(s);