1. Re: 32-bit random numbers3753

> *Concatenation* of two uniformly distributed 16-bit values -- as Derek
> and Rob suggested -- should IMHO result in a uniform distribution, too.
> 
> Rob said, that *addition* of two uniformly distributed values does
> result in a distribution, that is not uniform.
> 
> Regards,
>    Juergen
> 

Rob also said that, in theory, concatenation would be nice. The problem is
concatenating adjacent random numbers, because the random generator is 
actually deterministic. For this reason, only 2^16 among all possible 2^32 
integers will be generated.
It depends for which kind of purpose you'd like to use full 32-bit random
numbers.
The solution would be to have two independant random generators, with 
independant initializations and independant numbers of runs. Too slow if it's 
even feasible.

CChris

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu