Skip to content

Conversation

@jtcymc
Copy link
Contributor

@jtcymc jtcymc commented Sep 21, 2025

在选择随机元素时,修正了 Math.floor() 的使用(向下取整),确保随机索引的范围正确,避免了潜在的偏差问题。此修改适用于人员抽奖和其他随机选择场景。

在选择随机元素时,修正了 Math.floor() 的使用(向下取整),确保随机索引的范围正确,避免了潜在的偏差问题。此修改适用于人员抽奖和其他随机选择场景。
@jtcymc jtcymc changed the title fix: 修复随机选择算法以确保概率均匀性 fix: 修复随机选择算法以确保概率均匀性(边界值问题修复) Sep 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant