I'm at a total loss here... The logic seems to be setup correctly but the "response" in the while statement says it doesn't exist in the current context. I searched on here and quite seem to find the same issue in this context. Is the issue the conver to method?
do
{
Console.WriteLine("enter a number between 1 and 5");
int x = Convert.ToInt32(Console.ReadLine());
Random r = new Random();
int rr = r.Next(1, 5);
Console.WriteLine("Do you want to continue? Please select yes or no.");
string response = Convert.ToString(Console.ReadLine());
} while (response == "yes");