ThreadLocalRandom rand = ThreadLocalRandom.current();
int val = rand.nextInt(4,20);
int val2 = rand.nextDouble(2.0,10.0);
转载于:https://my.oschina.net/whitejavadog/blog/1861706
ThreadLocalRandom rand = ThreadLocalRandom.current();
int val = rand.nextInt(4,20);
int val2 = rand.nextDouble(2.0,10.0);
转载于:https://my.oschina.net/whitejavadog/blog/1861706