| 152 | } |
| 153 | |
| 154 | unsigned int Random_int (unsigned int n) |
| 155 | { |
| 156 | if (n == 0) {return 0;} |
| 157 | std::uniform_int_distribution<unsigned int> distribution(0, n-1); |
| 158 | int tid = OpenMP::get_thread_num(); |
| 159 | return distribution(generators[tid]); |
| 160 | } |
| 161 | |
| 162 | ULong Random_long (ULong n) |
| 163 | { |