We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
float random = new Random().nextFloat(); if (random < Constants.BROAD_RATE && distance(person) < SAFE_DIST) { this.beInfected(); break; }
这个地方 random不应该是大于 Constants.BROAD_RATE 感染率吗?可能是我理解错了吧
The text was updated successfully, but these errors were encountered:
< BROAD_RATE 表示概率,没问题的。只是应该仅在潜伏期和确诊两个状态才能感染人。还可以考虑已治愈的免疫期
Sorry, something went wrong.
< BROAD_RATE 表示概率,没问题的。只是应该仅在潜伏期和确诊两个状态才能感染人。还可以考虑已治愈的免疫期 明白了
No branches or pull requests
这个地方 random不应该是大于 Constants.BROAD_RATE 感染率吗?可能是我理解错了吧
The text was updated successfully, but these errors were encountered: