We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Your code doesn't include the last phone number from the list Link
[HttpGet] public IActionResult Get() { var randomNumber = random.Next(0, Phones.Numbers.Length - 1); return Ok(Phones.Numbers[randomNumber].ToString()); }
change random.Next(0, Phones.Numbers.Length - 1) to random.Next(0, Phones.Numbers.Length)
random.Next(0, Phones.Numbers.Length - 1)
random.Next(0, Phones.Numbers.Length)
The text was updated successfully, but these errors were encountered:
I would check how the count is used in the loop, this is written to start count at 0 and might not be the cause of the problem
Sorry, something went wrong.
No branches or pull requests
Your code doesn't include the last phone number from the list Link
change
random.Next(0, Phones.Numbers.Length - 1)
torandom.Next(0, Phones.Numbers.Length)
The text was updated successfully, but these errors were encountered: