I need to create a variable, and manually set its different values, then I need that every time when sending the request it randomly chooses any of these values and put it in the request query.
So, this is the request, It searches photos
GET {{url}}/photos/tags/stars
In the query, “stars” is a keyword, instead of “stars” I want to create a variable that will include many other keywords. For example “sun”, “earth” “flower”, “person” etc.
And everytime when sending the request I need to pick one of these values randomly and use it in the request.
@gpub1’s solution works, but I’m going to offer something slightly different since you said “random every time”
You want to set your pictureKeywords to an array variable. I almost always use collection variables for this, since it relates to the collection, rather than the environment. You can either add this manually to the collection variables, or you can set it in a pre-request script.