Bug in random number generation
Ouverte
Adaptée aux débutants
bug
- Langage dominant
- JavaScript
- Étoiles
- 1
- Forks
- 4
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
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.
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- javascript
- Domaine
- backend
- Type d'issue
- Bug
- Difficulté
- 2/5
- Temps estimé
- 1-3 heures
- Activité
- À l'abandon
- Clarté
- Clairement spécifiée
- Accessibilité débutants
- 75/100