生成 49/6 彩票可能的数字序列
我想生成 49 6 彩票的所有可能序列
因此我需要从 1 到 49 组中抽出的 6 个球的编号序列。
我可以获得生成这些序列的逻辑吗?
I want to generate all possible sequence for 49 6 lottery
So I need number sequence for 6 ball drawn from group of 1 to 49.
Can I get logic to generate these sequences?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是一篇写得很好的文章,涵盖了组合和排列的各种场景。文章末尾还有一个很好的参考文献列表。
http://www.codingthewheel.com/archives/exhaustively -代码中枚举组合和排列
Here is a well written article that covers the various scenarios of combinations and permutations. It also has a nice list of references at the end of the article.
http://www.codingthewheel.com/archives/exhaustively-enumerating-combinations-and-permutations-in-code