Back to home page

EIC code displayed by LXR

 
 

    


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

0001 #include <iostream>
0002 #include "S4Random.h"
0003 
0004 int main()
0005 {
0006     S4Random r ; 
0007     std::cout << r.desc() ; 
0008 
0009     r.setSequenceIndex(0) ; 
0010     std::cout << r.demo(10) << std::endl ;  
0011 
0012     r.setSequenceIndex(1) ; 
0013     std::cout << r.demo(10) << std::endl ;  
0014 
0015     // Returning to 0 continues the randoms in that stream (for a photon index)
0016     // they do not repeat unless the cursor is reset or cycled
0017     r.setSequenceIndex(0) ;   
0018     std::cout << r.demo(10) << std::endl ;  
0019 
0020 
0021     return 0 ; 
0022 }