How to create a equally distributed batting order for little league baseball team
古いコメントを表示
I am trying to create a batting order for my little league team. I have 10 players. I am trying to create a batting order for the ten games where everyone will bat from 1 to 10 in the order. I have one solution where I just move everyone down one spot from the order in the first game, but I am trying to find a way to do this where the kids are not always following the same kids. Mixing it up where they are following different people.
採用された回答
その他の回答 (2 件)
Use randperm() to generate the orders, e.g.:
ORDER = randperm(10,10)
Sulaymon Eshkabilov
2021 年 11 月 5 日
編集済み: Sulaymon Eshkabilov
2021 年 11 月 5 日
Here is how it can be generated for 10 times within a loop:
for ii=1:10
A(ii,:) =randperm(10, 10);
end
1 件のコメント
Jason Burke
2021 年 11 月 5 日
編集済み: Jason Burke
2021 年 11 月 5 日
カテゴリ
ヘルプ センター および File Exchange で Just for fun についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!