4 ms·
On Windows, Get-Random handles the basic cases nicely > 1..100 | Get-Random 72 > 1..100 | Get-Random -count 3 16 96 56 but doesn't hav
by latkin 11y ago
On Windows, Get-Random handles the basic cases nicely
> 1..100 | Get-Random
72
> 1..100 | Get-Random -count 3
16
96
56
but doesn't have something like -r to resample. Or a nice way to simply shuffle the whole collection (workaround is to just pass -count as large or larger than the collection).