slight favor for direction left?
- Dominant language
- CSS
- Stars
- 59
- Forks
- 6
- PR merge metrics
- No merged PRs in 30d
Description
Please check my math, but from my understanding, `Math.random` has a range of 0 (inclusive) and 1 (exclusive). So the max number possible is 0.999... repeating. By checking `random > 0.5` to set a direction right, aren't you favoring direction left by a slight margin since the smallest value for direction right would be .5000...1 repeating? If so, `random >= 0.5` would fix this.
Contributor guide
No contributing guide indexed for this repository
Research direction
Locate the direction-selection logic that uses Math.random and the > 0.5 comparison. Check the boundary behavior and confirm the chosen condition produces the intended balance; done when the direction choice is corrected and its behavior is verified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100