P23 (**) Extract a given number of randomly selected elements from a list.
| 185 | |
| 186 | // P23 (**) Extract a given number of randomly selected elements from a list. |
| 187 | void problem_23() |
| 188 | { |
| 189 | print_result(sample(std::random_device()(), 3, xs)); |
| 190 | } |
| 191 | |
| 192 | // P24 (*) Lotto: Draw N different random numbers from the set 1..M. |
| 193 | void problem_24() |
no test coverage detected