https://issues.dlang.org/show_bug.cgi?id=17832
--- Comment #2 from [email protected] --- Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/db5c1c84b9b344c28214463f7c94f83580363ded Addresses Issue 17832 Random choice default argument was deciding the type of the template. I'm not sure if this is a deeper bug, but it can easily be fixed with this patch which simply overloads the function. Also added a unittest which would have failed under the old code. https://github.com/dlang/phobos/commit/7823e1181d0a7e4698b77c7ba5fbbb25dcdebc7e Merge pull request #5741 from dunkyp/issue_17832 Fix Issue 17832 - std.random.choice cannot be used with other random generators --
