Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Type inference should have a special case for Get-Random #18889

Copy link
Copy link
@MartinGC94

Description

@MartinGC94
Issue body actions

Summary of the new feature / enhancement

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>

Proposed technical implementation details (optional)

No response

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.