Re: generate a huge amount of random numbers
- From: "Guenther Wimpassinger" <gw_spam@xxxxxxxxx>
- Date: Fri, 29 Apr 2005 13:53:18 +0200
"John Herbster" <herb-sci1_AT_sbcglobal.net> schrieb im Newsbeitrag news:42721a34$1@xxxxxxxxxxxxxxxxxxxxxxxxx
>
> "Guenther Wimpassinger" <gw_spam@xxxxxxxxx> wrote
> > How can I (or you) fasten up this procedure?
> > The array has 40,000 elements.
> > //Fill an array of DWords where each bit is set randomly
>
> Guenther, I suggest that you look at the CryptGenRandom
> function that is described in your Win32 (SDK) help file.
> Regards, JohnH
>
Thanks John!
But I think that is not what I need, or mabe I have missed something.
I don't need to generate a random key for encryption, I am doing
cloud simulation.
Let's say, I have an array of bits. With the MaxProp parameter I
can control how many bits of this array are set (approximalty).
So if I pass 1 as MaxProp all bits are set in this array,
if I pass 0.5 nearly half of all the bits are set. So, the number
of bits which should be set must be controlable.
For optimal access (later in the simulatoin) I have choosen an
array of DWord, where each element stores 32bit, and each bit
represents a cloud-point or an active action which should be
executed for this cloud-point (like generation of clouds and extinction).
Regards
Guenther
.
- Follow-Ups:
- Re: generate a huge amount of random numbers
- From: John Herbster
- Re: generate a huge amount of random numbers
- References:
- generate a huge amount of random numbers
- From: Guenther Wimpassinger
- Re: generate a huge amount of random numbers
- From: John Herbster
- generate a huge amount of random numbers
- Prev by Date: Re: generate a huge amount of random numbers
- Next by Date: Fastcode CompareMem B&V 1.1
- Previous by thread: Re: generate a huge amount of random numbers
- Next by thread: Re: generate a huge amount of random numbers
- Index(es):
Relevant Pages
|