This are two Properties for a Gallery view

A Rank: If the multi-select contains a "Music", a rank should be generated that spits out the number 2, 4 or 6. Based on the timestamp, so always changes randomly.

B Rank: If the product has an A Rank, take this result. If the product has no A Rank, please spit out a number between 1 and n (number of items in this filter), without the numbers 2, 4, 6. Based on the timestamp, so always changes randomly.

Number of Items in this Filter can also be adjusted.

A lot of thanks for the person who can help me with this!!!