Generate Secret Number
- Langage dominant
- C++
- Étoiles
- 1
- Forks
- 5
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
The secret number generation is incomplete. Implement the logic to generate a random number between lowerBound and upperBound using the rand() function.
Acceptance Criteria:
The secretNumber variable should be assigned a random number using a formula that ensures it falls within the specified range.
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
Look for the secretNumber variable and the lowerBound/upperBound variables in the codebase. Use the C++ rand() function with modulo and addition to generate a number within the inclusive range. Test by running the program to ensure the generated number is always between the bounds.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- cpp
- Domaine
- cli
- Type d'issue
- Fonctionnalité
- Difficulté
- 1/5
- Temps estimé
- Moins d'une heure
- Activité
- À l'abandon
- Clarté
- Clairement spécifiée
- Accessibilité débutants
- 80/100