@LongDong foreach works with lists, but @UserTrue suggested the option of how to take account strings from resources multiple times in 1 thread.
resource is not a list.
Maybe not the best way to do it but you can scrape all possible urls on the page and then add all to a new list then you can take a random line from the list and click it. That would 100% work.