Randomise instances of family with various types

On a theatre model I need to randomize the seat family instances with its types so that they don’t look all the same. There are four types (each one with a different person on the seat). Initially the instances can be equally divided a quarter of each type and then shuffled in dynamo.

Using Vikram Subbaiah’s ‘All Elements of Family Name’ and ‘Manage.RandomizeOrder’ I was able to randomize the list of seats but could not apply the list result back to Revit.

FamilyInstance.SetType expects a single family type and doesn’t seem to help.

Any ideas?

image