List of usage examples for java.util Random longs
public LongStream longs(long randomNumberOrigin, long randomNumberBound)
From source file:com.idrene.emefana.repositories.RepositoriesTest.java
static Double price() { Random random = new Random(); return Double.valueOf(random.longs(600000, 1000000).limit(5).findAny().getAsLong()); }