Horizontal offsets

This commit is contained in:
Marco 2025-04-15 16:22:30 +02:00
commit bbdba6ae6d
7 changed files with 168 additions and 10 deletions

View file

@ -19,7 +19,7 @@ public static class ShuffleExtensions
if (originalCount == 0) yield break;
// Repeat elements to meet the desired length
if (desiredLength.HasValue && desiredLength > originalCount)
if (desiredLength > originalCount)
{
int countToAdd = desiredLength.Value - originalCount;
for (int i = 0; i < countToAdd; i++)