Bug in random number generation
未关闭
适合新手
bug
- 主要语言
- JavaScript
- 星标
- 1
- 派生
- 4
- PR 合并指标
- 30 天内没有已合并 PR
描述
Description: We have to generate random number between 0 and 3 to select anyone from 4 colors in nextSequence function. But the code now generate any number. Figure out how to generate the number in specific range only.
贡献指南
这个仓库没有索引到贡献指南
调研方向
Look for the nextSequence function in the codebase, likely in a game or utility file. Examine the current random number generation logic, which probably uses Math.random() without proper bounds. Adjust it to produce integers from 0 to 3 inclusive, then test by running the function multiple times to verify the output range.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript
- 领域
- backend
- Issue 类型
- 缺陷
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 描述清楚
- 新手友好度
- 75/100