List of randomized View Model properties without duplicates

TL;DR: Is there a way to fill a list of values in a View Model with a randomized set of values without any of the values appearing twice?


I’m trying to tackle an issue I think might be possible using data binding, but I’m not sure. I’m going to use a fictional project as an example:

What if I wanted to make a fictional memory game and I wanted to fill a field of ‘cards’ (nested artboards) with randomized shapes. Each artboard should show only once.

My first thought would be to wrap them all in a solo on an artboard and use the State Machine to select them based on a number property. I would then duplicate that nested artboard in a grid. In my View Model, I would create an x amount of number properties according to the amount of tiles I need and bind this to my nested artboards as instances.

My challenge:

Is there a way I can randomize the cards/number properties while checking to make sure a number doesn’t already appear twice among the list of number properties?