|
|
|||
File indexing completed on 2026-04-09 07:49:16
0001 #include <cassert> 0002 #include <iostream> 0003 #include <iomanip> 0004 #include <array> 0005 0006 #include "SDice.hh" 0007 0008 int main(int argc, char** argv) 0009 { 0010 SDice<26> rng ; 0011 0012 std::array<unsigned, 26> hist ; 0013 0014 for(unsigned i=0 ; i < 1000000 ; i++) hist[rng()] += 1 ; 0015 0016 for(unsigned i=0 ; i < 26 ; i++) std::cout << std::setw(2) << i << " " << hist[i] << std::endl ; 0017 0018 return 0 ; 0019 0020 }
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|