Is it possibble to make a JavaScript Array of random items

Generate an array of random names from a list.

I have 3 column names to generate a JSON output like below.

The last item “tag” picks a random tag name from a comma separated list of tag names.

JSON generated snow:

[{
  "name": "tamu.edu",
  "url": "https://un.org/dapibus/nulla/suscipit.xml",
  "tag": "map"
}, {
  "name": "bloomberg.com",
  "url": "https://reverbnation.com/id/lobortis/convallis/tortor/risus.jpg?placerat=neque",
  "tag": "chart"
}]

My goal is to change that to instead pick a random tag name from the list like it does now but to instead pick between 1 and 5 random tags for each row and show them as an array on that column like this:

"tag":["currency","apollo","slide"]

I know I could make the tag column use a JSON type however this requires me to create key/value pairs and I only need an array of keys or values and not a key and value.

You can just add a range in brackets to the end of your tag field name. For example tag[1-3] will generate an array of between 1 and 3 values randomly picked from the list.

Here’s an example: