You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Get-Random can be used on collections like this: $RandomFiles = Get-ChildItem $PSHOME -File | Get-Random -Count 5 the type inference should handle this the same way it does with Select-Object -First X so tab completion can work like you would expect, eg: Get-ChildItem $PSHOME -File | Get-Random -Count 5 | where {$_.<tab>
Summary of the new feature / enhancement
Get-Random can be used on collections like this:
$RandomFiles = Get-ChildItem $PSHOME -File | Get-Random -Count 5the type inference should handle this the same way it does withSelect-Object -First Xso tab completion can work like you would expect, eg:Get-ChildItem $PSHOME -File | Get-Random -Count 5 | where {$_.<tab>Proposed technical implementation details (optional)
No response