M. Visual C++ 2005 and Mersenne Twister (RNG) M. Visual C++ 2005 and Mersenne Twister

Hi All !

  1. How i can run “mt19937.tar.gz” (http://forums.nvidia.com/index.php?showtopic=31159&hl=mt19937&st=20) in Microsoft Visual C++ 2005 ?

My problem:

Compiling…
dcmt19937_kernel.cu
“c:\Program Files\NVIDIA Corporation\NVIDIA CUDA SDK\projects\newproj\dcmt19937\dcmt19937\dcmt19937.cu”, line 50: error:
identifier “mt19937sk” is undefined
{“Shared”, mt19937sk, 32, 1, 1, 0},

  1. How i can use this program and generated 2000 random numbers

I wish to use as here:
(It is written on Delphi)

var
Masiv : array [1…10] of real;
I : integer;

begin
for I:=1 to 10 do
Masiv[i]:=Randomize_MT19937; // <-- Mersenne Twister Function generating one random number;
end;

Thanks for possible councils!!!