Nov-06-2022, 11:09 PM
@ Grillboulis
Well, I don't think that memory is so great a consideration nowadays.
The above completes in the blink of an eye. It's not like it takes minutes to finish.
Put in a function, as you recently told me I believe, as soon as the function completes, the garbage collector removes all leftovers.
I don't think I need to check if the tuples of 9 images have any repeats of 1 image, because they are combinations, which should be unique, I think, but I wasn't sure, as I never deal in permutations and combinations, so it is just a safety.
If permutations of 9 from 24 are allowed, there will be nearly 500 trillion permutations to choose from.
Isn't it possible to get permutations with random.sample()??
Well, I don't think that memory is so great a consideration nowadays.
The above completes in the blink of an eye. It's not like it takes minutes to finish.
Put in a function, as you recently told me I believe, as soon as the function completes, the garbage collector removes all leftovers.
I don't think I need to check if the tuples of 9 images have any repeats of 1 image, because they are combinations, which should be unique, I think, but I wasn't sure, as I never deal in permutations and combinations, so it is just a safety.
If permutations of 9 from 24 are allowed, there will be nearly 500 trillion permutations to choose from.
Isn't it possible to get permutations with random.sample()??