Firsting first you need to pack all tree variants to an array And then you can pick a random tree from this array, simply by using a random node