I have a dataframe of race results (where each race has 14 participants) that looks like this:
df = race_id A0 B0 C0 A1 B1 C1 A2 B2 C2 ... A13 B13 C13 WINNER
1 2 3 0 9 1 3 4 5 1 1 2 3 3
2 1 5 2 7 3 2 8 6 0 6 4 1 9
.....
I want to train the data on a multi logistic regression model. However, as the data currently stands, the model would be sensitive to permuting the participants. For example, if the model is given the record
race_id A0 B0 C0 A1 B1 C1 A2 B2 C2 ... A13 B13 C13 WINNER
3 9 1 3 2 3 0 4 5 1 1 2 3 3
Which is just changing participant 0 features into participant 1 features in race 1, the model would output a different prediction for the winner even though the input is the same.
So I want to generate a random 100 permutations for each race in the data with the same winner to train the model to adapt on permutations. How can I create these 100 sample permutations for this data frame (While preserving the A,B,C features of every racer?