Re: generate a huge amount of random numbers




"Guenther Wimpassinger" <gw_spam@xxxxxxxxx> wrote
> I have 40,000 DWords which represtens 1,280,000
> (40,000*32) bits and each bit corespon to a cloud-point.

> > Apparently MaxProp is the probably
> > that a bit value is set to 1.

> > You could fill your array with the required number
> > of one bit values and then do some shuffling of
> > both words, bytes, and bits. Regards, JohnH

> Maybe thats an idea, I will use the weekend
> to think about it.

Guenther, Depending on the "granularity" that you
require in your MaxProp, you might be able to use
some tricks with boolean ANDs and ORs with your
arrays of bits.

Ex: If boolean values A and B are random,
independant, and with probability of 1/2, then
the probability of that A AND B is true is 1/4
and the probability that A OR B is 3/4.

You may also wish to look for ideas in Knuth's
book _The Art of Computer Programming_
Volume 2 _Seminumerical Algorithms_

Good luck thinking, JohnH
.