[Omp] initialize a array with rundom numbers in a parallel loop

Meadows, Lawrence F lawrence.f.meadows at intel.com
Wed Jan 4 16:34:57 PST 2006


It is wonderful that you actually asked this question! Most
folks don't even notice. If Tim Mattson is awake he will
second me.

Try a google search for "parallel random number generators" .

One that seems to be very good and that I have used, and seen
used, is SPRNG:

http://sprng.cs.fsu.edu/

It should be compatible with OpenMP.

Good Luck

Regards,

Larry Meadows


>-----Original Message-----
>From: Omp-bounces at openmp.org [mailto:Omp-bounces at openmp.org] 
>On Behalf Of Lado Kumsiashvili
>Sent: Wednesday, January 04, 2006 3:04 PM
>To: Omp at openmp.org
>Subject: [Omp] initialize a array with rundom numbers in a 
>parallel loop
>
>Hallo!
>
>To solve my excersize i have to initialize a array with random numbers
>in a parallel loop(for). But i found out, that random() function from
><stdlib.h> not threadsafe ist. Is there any better Solution ?
>
>Lado
>
>
>
>-- 
>
>
>
>-----------------------------------
>        Lado Kumsiashvili
>lado at student.uni-kassel.de
>-----------------------------------
>საქართველოში იბადებოდნენ
>და შემდეგ მუდამ სწუხდნენ ამაზე...
>
>_______________________________________________
>Omp mailing list
>Omp at openmp.org
>http://openmp.org/mailman/listinfo/omp_openmp.org
>


More information about the Omp mailing list