Generate a random price between 0.00 and 100.00
()
| 46 | * Generate a random price between 0.00 and 100.00 |
| 47 | */ |
| 48 | public String price() { |
| 49 | return price(0, 100); |
| 50 | } |
| 51 | |
| 52 | public String price(double min, double max) { |
| 53 | double price = min + (faker.random().nextDouble() * (max - min)); |