We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c77bae0 commit f7048f5Copy full SHA for f7048f5
1 file changed
src/ps/commands/sample.ts
@@ -13,7 +13,7 @@ export const command: PSCommand = {
13
const nums =
14
originalCommand[0] === 'random'
15
? Array.from({ length: count }, () => sample(max) + 1)
16
- : Array.from({ length: count }, (_, index) => index + 1).sample(count);
17
- broadcast(nums.join(', '));
+ : Array.from({ length: max }, (_, index) => index + 1).sample(count);
+ broadcast(nums.sortBy(num => num, 'asc').join(', '));
18
},
19
};
0 commit comments