John Big Booty
AWF VIP
- Local time
- Today, 11:49
- Joined
- Aug 29, 2005
- Messages
- 8,263
I have ten records each of which can be assigned a value from one to ten, but no two records can hold the same value so there are ten factorial combination.
What I need to do is come up with a procedure to iterate through each of those 10! combinations (yes that's 3,628,800). I'm having trouble getting my head around the logic to do this, so any help or suggestions will be gratefully accepted
As back ground each record represents a row in a grid and each the value held in that record represents the column in the grid, and the combination of the record and the value it holds will give me the address of a cell in the grid that hold a numeric value.
What I need to do is come up with a procedure to iterate through each of those 10! combinations (yes that's 3,628,800). I'm having trouble getting my head around the logic to do this, so any help or suggestions will be gratefully accepted
As back ground each record represents a row in a grid and each the value held in that record represents the column in the grid, and the combination of the record and the value it holds will give me the address of a cell in the grid that hold a numeric value.