Re: generate a huge amount of random numbers




"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



.



Relevant Pages

  • Re: generate a huge amount of random numbers
    ... With the MaxProp parameter I ... >> can control how many bits of this array are set. ... > Guenther, So you have 40,000 elements. ...
    (borland.public.delphi.language.basm)
  • Re: Conversion Problem
    ... > ...talking about control arrays: ... > Why does a CommandButton have an Index even if it does ... just because it may or may not be part of an array. ... Because it's a hack. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Conversion Problem
    ... ...talking about control arrays: ... Why does a CommandButton have an Index even if it does not ... because it may or may not be part of an array. ... Now being able to attach any handler of any event as long as ...
    (microsoft.public.dotnet.languages.vb)
  • Re: global warming: is it us, or is it the sun?
    ... > structure (there is no such thing as a rigid structure on that scale) get ... if you use the whole array area as transmitting ... bit of control subsystems, etc. ... The power beam would be steered via coordinating the ...
    (sci.space.policy)
  • Re: IsCollection?
    ... whether or not a Control is a collection (or belongs to an array of ocntrols)? ... Text1.Count will give me the total elements of this control ... Now add a third command button to the form but DON'T make it part of the control array. ... If TypeOf Command1 Is Object Then ...
    (microsoft.public.vb.general.discussion)