I want to use parallel stream api to read redis, get all items, and randomly sample 10% out of all items. But I found it sometimes throws exception says random.nextInt
random.nextInt