Automatic Random Test Data Generation of Documents for Seeding a MongoDB Database

I’m using JSON Generator https://next.json-generator.com to seed my MongoDB database. I’m finding trouble to generate a random set (from one to six) of colors out of the predefined group. I’ve succeeded to generate all of the other property values but color. I need for the availableColors key to generate a random variable number of colors out of a predefined set of six: “blue”, “brown”, “green”, “white”, “yellow”, “gray”. Here is the URL to the online generator where it is possible to real-time edit it: https://next.json-generator.com/E1g60a1pL Here is the code: Here is the result I get: I expect the “availableColors” of