Re: 32-bit random numbers
- Posted by "Juergen Luethje" <j.lue at gmx.de> Jul 08, 2004
- 608 views
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. Thank you for this important information, Ricardo! [snipped old text] Regards, Juergen