Index: Pi/XPU/PiXpuMPI.py
===================================================================
--- Pi/XPU/PiXpuMPI.py	(revision 238)
+++ Pi/XPU/PiXpuMPI.py	(revision 239)
@@ -73,6 +73,8 @@
         Fit=False
         # Marsaglia RNG
         RNG='MWC'
+        # Seeds
+        Seeds=110271,101008
         # Value type : INT32, INT64, FP32, FP64
         ValueType='FP32'
         # Inside based on If
@@ -251,12 +253,18 @@
                 for Device in Devices[1:]:
                     print("Send to device %i on rank %i" % (Device,r))
                     InputCL['Device']=Device
+                    DeltaD=Device-min(Devices)+r+1
+                    DeltaS=(DeltaD-1+r)*524287
+                    InputCL['Seeds']=numpy.uint32(Seeds[0]*DeltaD+DeltaS),numpy.uint32(Seeds[1]*DeltaD+DeltaS)
                     comm.send('CONTINUE',dest=r,tag=11)
                     comm.send(InputCL,dest=r,tag=11)
                     r+=1
 
                 # Compute on rank 0
                 print("Compute on rank 0")
+                DeltaD=Device-min(Devices)+1
+                DeltaS=(DeltaD-1)*524287
+                InputCL['Seeds']=numpy.uint32(Seeds[0]*DeltaD+DeltaS),numpy.uint32(Seeds[1]*DeltaD+DeltaS)
                 InputCL['Device']=Devices[0]
 
                 if GpuStyle=='CUDA':
Index: Pi/XPU/PiXpuThreads.py
===================================================================
--- Pi/XPU/PiXpuThreads.py	(revision 238)
+++ Pi/XPU/PiXpuThreads.py	(revision 239)
@@ -76,6 +76,8 @@
     Fit=False
     # Marsaglia RNG
     RNG='MWC'
+    # Seeds
+    Seeds=110271,101008
     # Value type : INT32, INT64, FP32, FP64
     ValueType='FP32'
     # Inside based on If
@@ -194,7 +196,7 @@
             for platform in cl.get_platforms():
                 for device in platform.get_devices():
                     #deviceType=cl.device_type.to_string(device.type)
-                    deviceType="*PU"
+                    deviceType="xPU"
                     print("Device #%i from %s of type %s : %s" % (Id,platform.vendor.lstrip().rstrip(),deviceType,device.name.lstrip().rstrip()))
 
                     if Id in Devices:
@@ -241,6 +243,8 @@
             time_start=time.time()
 
             for Device in Devices:
+                DeltaD=Device-min(Devices)+1
+                DeltaS=(DeltaD-1)*524287
                 InputCL={}
                 InputCL['Iterations']=IterationsMP
                 InputCL['Steps']=1
@@ -248,6 +252,7 @@
                 InputCL['Threads']=Threads
                 InputCL['Device']=Device
                 InputCL['RNG']=RNG
+                InputCL['Seeds']=numpy.uint32(Seeds[0]*DeltaD+DeltaS),numpy.uint32(Seeds[1]*DeltaD+DeltaS)
                 InputCL['ValueType']=ValueType
                 InputCL['IfThen']=IfThen
                 if GpuStyle=='CUDA':
Index: Pi/XPU/PiXPU.py
===================================================================
--- Pi/XPU/PiXPU.py	(revision 238)
+++ Pi/XPU/PiXPU.py	(revision 239)
@@ -428,6 +428,7 @@
     RNG=InputCU['RNG']
     ValueType=InputCU['ValueType']
     TestType=InputCU['IfThen']
+    Seeds=InputCU['Seeds']
     
     Marsaglia,Computing,Test=DictionariesAPI()
     
@@ -479,10 +480,8 @@
         try:
             MetropolisHybridCU(circleCU,
                                numpy.uint64(iterationsCU),
-                               numpy.uint32(110271),
-                               numpy.uint32(101008),
-                               # numpy.uint32(nprnd(2**32)),
-                               # numpy.uint32(nprnd(2**32)),
+                               numpy.uint32(Seeds[0]),
+                               numpy.uint32(Seeds[1]),
                                grid=(blocks,1),block=(threads,1,1))
         except:
             print("Crash during CUDA call")
@@ -514,9 +513,10 @@
     RNG=InputCL['RNG']  
     ValueType=InputCL['ValueType']
     TestType=InputCL['IfThen']
+    Seeds=InputCL['Seeds']
 
     Marsaglia,Computing,Test=DictionariesAPI()
-    
+
     # Initialisation des variables en les CASTant correctement
     Id=0
     HasXPU=False
@@ -527,12 +527,13 @@
                 print("CPU/GPU selected: ",device.name.lstrip())
                 HasXPU=True
             Id+=1
+            print(Id)
 
     if HasXPU==False:
         print("No XPU #%i found in all of %i devices, sorry..." % (Device,Id-1))
-        sys.exit()              
+        sys.exit()           
 
-        
+    print(XPU)
     # Je cree le contexte et la queue pour son execution
     try:
         ctx = cl.Context(devices=[XPU])
@@ -562,18 +563,14 @@
             CLLaunch=MetropolisCL.MainLoopGlobal(queue,(blocks,),None,
                                                  circleCL,
                                                  numpy.uint64(iterationsCL),
-                                                 numpy.uint32(110271),
-                                                 numpy.uint32(101008))
-                                                 # numpy.uint32(nprnd(2**32)),
-                                                 # numpy.uint32(nprnd(2**32)))
+                                                 numpy.uint32(Seeds[0]),
+                                                 numpy.uint32(Seeds[1]))
         else:
             CLLaunch=MetropolisCL.MainLoopHybrid(queue,(jobs,),(threads,),
                                                  circleCL,
                                                  numpy.uint64(iterationsCL),
-                                                 numpy.uint32(110271),
-                                                 numpy.uint32(101008))
-                                                 # numpy.uint32(nprnd(2**32)),
-                                                 # numpy.uint32(nprnd(2**32)))
+                                                 numpy.uint32(Seeds[0]),
+                                                 numpy.uint32(Seeds[1]))
 
         CLLaunch.wait()
         cl.enqueue_copy(queue, circle, circleCL).wait()
@@ -704,6 +701,8 @@
     RNG='MWC'
     # Value type : INT32, INT64, FP32, FP64
     ValueType='FP32'
+    # Seeds for RNG
+    Seeds=110271,101008
 
     HowToUse='%s -o (Out of Core Metrology) -c (Print Curves) -k (Case On IfThen) -d <DeviceId> -g <CUDA/OpenCL> -i <Iterations> -b <BlocksBegin> -e <BlocksEnd> -s <BlocksStep> -f <ThreadsFirst> -l <ThreadsLast> -t <ThreadssTep> -r <RedoToImproveStats> -m <SHR3/CONG/MWC/KISS> -v <INT32/INT64/FP32/FP64>'
     
@@ -874,6 +873,7 @@
                         InputCU['Threads']=Threads
                         InputCU['Device']=Devices[0]
                         InputCU['RNG']=RNG
+                        InputCU['Seeds']=Seeds
                         InputCU['ValueType']=ValueType                    
                         InputCU['IfThen']=IfThen                    
                         OutputCU=MetropolisCuda(InputCU)
@@ -891,6 +891,7 @@
                         InputCL['Threads']=Threads
                         InputCL['Device']=Devices[0]
                         InputCL['RNG']=RNG
+                        InputCL['Seeds']=Seeds
                         InputCL['ValueType']=ValueType
                         InputCL['IfThen']=IfThen                    
                         OutputCL=MetropolisOpenCL(InputCL)
@@ -911,6 +912,7 @@
                     InputCU['Threads']=Threads
                     InputCU['Device']=Devices[0]
                     InputCU['RNG']=RNG
+                    InputCU['Seeds']=Seeds
                     InputCU['ValueType']=ValueType
                     InputCU['IfThen']=IfThen                    
                     OutputCU=MetropolisCuda(InputCU)
@@ -929,6 +931,7 @@
                     InputCL['Threads']=Threads
                     InputCL['Device']=Devices[0]
                     InputCL['RNG']=RNG
+                    InputCL['Seeds']=Seeds
                     InputCL['ValueType']=ValueType
                     InputCL['IfThen']=IfThen
                     OutputCL=MetropolisOpenCL(InputCL)
@@ -940,7 +943,6 @@
             Rate=NewIterations/Duration
             print("Pi estimation %.8f" % (4./NewIterations*Inside))
 
-            
         avgD=numpy.append(avgD,numpy.average(Duration))
         medD=numpy.append(medD,numpy.median(Duration))
         stdD=numpy.append(stdD,numpy.std(Duration))
