On Wed, 6 Dec 2006 00:09:27 +0000 (UTC), in comp.lang.c ,
Sure they are (if they could be randomly generated at all).
They just don't have a uniform distribution.
For some reason I read the OP's requirement as wanting 80% to be even,
and 20% to be odd.
Throw two fair-weighted six-sided dice. The total of the upwards
faces is random in the range 2 to 12 -- but the total will not
have a uniform random distribution. (e.g., 2 and 12 will each have
probability 1/36; 7 will have probability 1/6).
You have two sets of random numbers here.
FWIW I know what you're saying. BTW its probably how I'd solve the
OP's problem - generate two sets of random data, and an algo for
weighting them.
--
Mark McIntyre
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan