Bug in random number generation
Aperta
Adatta ai principianti
bug
- Lingua principale
- JavaScript
- Stelle
- 1
- Fork
- 4
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript
- Ambito
- backend
- Tipo di issue
- Bug
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Ferma
- Chiarezza
- Specificata chiaramente
- Idoneità per principianti
- 75/100