0

I have a method int randInt(int min, int max) that generates a random integer between min and max inclusive. It interfaces with an external system that has a good source of entropy.

The external system only generates 32-bit integers, while I need to get a 64-bit long.

Is it possible to compose several random integers to create a long without introducing any new bias?

ICR
  • 13,896
  • 4
  • 50
  • 78

0 Answers0