Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-04-09 07:49:21

0001 // name=srngcpu_test ; gcc $name.cc -I.. -std=c++11 -lstdc++ -o /tmp/$name && /tmp/$name
0002 
0003 #include "srngcpu.h"
0004 
0005 int main()
0006 {
0007     srngcpu r ; 
0008     std::cout << r.desc() ; 
0009     std::cout << r.demo(10) << std::endl ;  
0010 
0011 
0012     r.setSequenceIndex(0) ; 
0013     std::cout << r.demo(10) << std::endl ;  
0014 
0015     r.setSequenceIndex(1) ; 
0016     std::cout << r.demo(10) << std::endl ;  
0017 
0018     // Returning to 0 continues the randoms in that stream (for a photon index)
0019     // they do not repeat unless the cursor is reset or cycled
0020     r.setSequenceIndex(0) ;   
0021     std::cout << r.demo(10) << std::endl ;  
0022 
0023  
0024     return 0 ; 
0025 }