How can create reproducable random numbers

后端 未结 0 1299
庸人自扰
庸人自扰 2020-12-04 04:18

how can create reproducable random numbers in java 8+ parallel Streams?

Example:

Random r = new Random(1337);

Arrays.stream(new int[]{1,2,3})
.paralle         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题