samedi 27 novembre 2021

Randomizing lists with set rules

ok, so i have a project where i want to make a list randomizer with a set of rules lets say i have 1 list named guests with 9 items, 1 named hosts with 4 items, and one named meals with 3 items.

now i want to randomize these guests across the hosts so every host get 3 guests, witch is fair enough. now they will all be connected to the first item in meal. problem arrives when i want to scramble them again across different hosts for meal 2, but so that none of the guests that have been together meet again for the next 2 meals. i do in the end want to have it so i can have a dynamic list of hosts and guests that will solve itself after they've been typed in

i dont want the code solved, just looking for the means to get there. Thanks alot in advance




Aucun commentaire:

Enregistrer un commentaire