Skip to content
This repository has been archived by the owner on Aug 4, 2020. It is now read-only.

关于抽卡算法的咨询 #26

Open
IcyBiscuit opened this issue May 10, 2019 · 0 comments
Open

关于抽卡算法的咨询 #26

IcyBiscuit opened this issue May 10, 2019 · 0 comments

Comments

@IcyBiscuit
Copy link

IcyBiscuit commented May 10, 2019

你好,我阅读了代码的抽卡算法部分,使用正态随机是一种能让抽选结果符合分布意义而不仅仅是统计意义的好方法。
我想咨询一下使用μ-σ(50, 16)的正态随机分布是有什么特殊意义吗?
如果使用标准正态分布,似乎可以通过查询表格实现自定义抽卡概率?

lottery.py 177行的注释中:

 # 正态分布 半边 1σ:34.1%; 2σ:13.6%; 3σ:2.1%; 0.1%;

结合代码实现,叙述改为:

 # 正态分布 半边:μ~1σ: 34.1%; 1σ~2σ: 13.6%; 2σ~3σ: 2.1%; >3σ: 0.1%;

应该会更准确

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant