Hello,
is it possible to check a randomly response from a list of 3 empty boxes?
On a site, I have a question with three possible answers to check. I want to create a robot to check randomly from the responses list, for like 100 times of running the robot.
I know how to make a loop but I don’t know how to check a randomly response.
I attached a screenshot with this task.
Please help me.
Thank you!
You can use random function, refer the following code / logic
Put the entire code inside a for loop
//Variable declaration
//Invoke code to generate random no, pass an argument
temp = rndnumber.Next.ToString //use assign activity
temp = temp.Substring(temp.Length-2,2) // take the last digit
randNum = Convert.ToInt32(temp)
if randNum >=1 and randNum <= 3 then
check the option
break
else
continue the loop // use a while loop
end if