Re: 32-bit random numbers

new topic     » goto parent     » topic index » view thread      » older message » newer message

Ricardo Forno wrote:

> The resulting distributions are good, but there is a problem.
> As rand(power(2, 30) -1) can generate only 2^30 - 1 different numbers, no
> matter what you do with these numbers, you will get possibly only 2^30 - 1
> different numbers between 1 and 2^32, and so you will never get one of the
> remaining 2^32 - 2^30 numbers, or 3/4ths of the total possibilities.

I see. getlost
Thank you for this important information, Ricardo!

[snipped old text]

Regards,
   Juergen

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu