Re: generate a huge amount of random numbers




"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

.



Relevant Pages

  • Re: Is it legal to type cast to DWORD* ???
    ... You are abusing an array by copying 4 byte quads into it. ... The only reason you might need an array of DWORDs shifted at integral ... indices would be some kind of binary compatibility. ... As a style rule that leads to technical rules, shun C style casts, such as ...
    (comp.lang.cpp)
  • generate a huge amount of random numbers
    ... //Fill an array of DWords where each bit is set randomly ... procedure InitRandomBits(var BitsArray: array of DWord; ... Prev by Date: ...
    (borland.public.delphi.language.basm)
  • CCcomBSTR to vector
    ... I receive values from an another application as a com string: ... And i need to store the values as DWORDs in an array, ...
    (microsoft.public.vc.language)
  • Re: Looking for speed performance to draw line.
    ... each item in an array, that being the next and/or previous indexes. ... and it's next pointer to the previous item's original next pointer. ... Next -1, Prev 0 ... shapes up into shape classes that implemented the required commands ...
    (microsoft.public.vb.winapi.graphics)
  • Re: Multiple Condition Sumif Formula
    ... Andy. ... > revenue column. ... > & I've tried to enter the formula as an array by doing ... Prev by Date: ...
    (microsoft.public.excel.worksheet.functions)