New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
红包算法测试问题 #146
Labels
Comments
请把你测试的这段代码贴下,我模拟试试。 |
public static void main(String[] args) {
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
根据您的红包实现算法,自己测试了一下数据,产生200W个红包 每个红包的总金额都是200 分给10个人,按理说在每个人获得的金额在概率分布中应该是20元左右,但是测试出来的结果 有同一个共性,就是 倒数 后面几个人获取的平均值 总是距离平均值很远。从概率的角度想 不应该出现这个问题吧
The text was updated successfully, but these errors were encountered: