Feb-03-2022, 11:06 PM
[quote="deanhystad" pid='152955' dateline='1643928996']
Create a list of tuples for all possible combinations of row and col. Shuffle the list or randomly remove combinations from the list. This example shuffles the fields list and pops the combinations off the end.
Thanks Dean, this is actually incredibly helpful and the itertools module is definitely going to help in the rest of the code.
Create a list of tuples for all possible combinations of row and col. Shuffle the list or randomly remove combinations from the list. This example shuffles the fields list and pops the combinations off the end.
Thanks Dean, this is actually incredibly helpful and the itertools module is definitely going to help in the rest of the code.