首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往
您找到你想要的搜索结果了吗?
是的
没有找到

硬核 - Java 随机数相关 API 的演进与思考(上)

testRandomIntWithBound(Blackhole blackhole) throws Exception { //注意不取 2^n 这种数字,因为这种数字一般不会作为实际应用的范围...(Blackhole blackhole) throws Exception { blackhole.consume(splittableRandom.get().nextInt()); }...@Benchmark public void testSplittableRandomIntWithBound(Blackhole blackhole) throws Exception { //...(Blackhole blackhole) throws Exception { //注意不取 2^n 这种数字,因为这种数字一般不会作为实际应用的范围,但是底层针对这种数字有优化 blackhole.consume...(Blackhole blackhole) { //注意不取 2^n 这种数字,因为这种数字一般不会作为实际应用的范围,但是底层针对这种数字有优化 blackhole.consume(drbg.get

70120
领券