7xGit / 7xGit/7xGit_Task6

Bug in random number generation

Ouverte Adaptée aux débutants
#2 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
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

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.