Summary
In Sample mode without replacement, requesting more samples than the available source items silently returns fewer items while announcing Randomize completed.. The requested count remains visible, so the result does not match the request and no explanation is shown.
Reproduction
- Open https://byteflow.tools/en/list-randomizer.
- Use Sample mode.
- Enter this list:
- Leave Remove duplicate items unchecked.
- Leave Sample with replacement unchecked.
- Set Sample Count to
10.
- Set Seed to
1.
- Click Randomize.
Expected
Either reject the request with a clear validation error (the guide lists Sample count exceeds source length as a common error), or explicitly explain that the result is being capped at the source length.
Actual
- The page announces
Randomize completed..
- The control still shows
Sample Count: 10.
- Output metadata says
Source Items: 3 Result Items: 3 Sample Count: 10.
- The output contains only
b, c, and a.
- No error or warning is shown.
Observed output:
Mode: Sample Source Items: 3 Result Items: 3 Dedupe: No With Replacement: No Sample Count: 10 Seed: 1
1. b
2. c
3. a
With Sample with replacement enabled, the same request correctly returns 10 items, so the silent under-result is specific to the invalid no-replacement request.
Summary
In Sample mode without replacement, requesting more samples than the available source items silently returns fewer items while announcing
Randomize completed.. The requested count remains visible, so the result does not match the request and no explanation is shown.Reproduction
10.1.Expected
Either reject the request with a clear validation error (the guide lists
Sample count exceeds source lengthas a common error), or explicitly explain that the result is being capped at the source length.Actual
Randomize completed..Sample Count: 10.Source Items: 3 Result Items: 3 Sample Count: 10.b,c, anda.Observed output:
With Sample with replacement enabled, the same request correctly returns 10 items, so the silent under-result is specific to the invalid no-replacement request.