I'm writing in Javascript I have an array of 10 items
From these 10 items I want to permutate 14 arrays of 5 items each that obey the following rules:
- The items "look jumbled" but
- Each of the 10 items is represented exactly 7 times across the 14 arrays
- No item in the same position in any of 3 consecutive arrays
- No more than two common items between 2 consecutive arrays
Now I can do this once by hand, but it's a lot of work to do it 100 times. Can it be done programmatically?
thanks
Aucun commentaire:
Enregistrer un commentaire