Skip to content

Get-Random -SetSeed examples from before v5.1 #10163

@crisman

Description

@crisman

Prerequisites

  • Existing Issue: Search the existing issues for this repository. If there is an issue that fits your needs do not file a new one. Subscribe, react, or comment on that issue instead.
  • Descriptive Title: Write the title for this issue as a short synopsis. If possible, provide context. For example, "Typo in Get-Foo cmdlet" instead of "Typo."
  • Verify Version: If there is a mismatch between documentation and the behavior on your system, ensure that the version you are using is the same as the documentation. Check this box if they match or the issue you are reporting is not version specific.

Links

Summary

In the code block under example 9 for Get-Random the output listed is from PowerShell 4. The numbers in v5.1 and v7.* are different.

Examples, the first number is 74 in the docs and PowerShell 4, but in current PowerShell it is 32.

Details

The new set of numbers is 32,25,93,95 in at least 5.1, 7.3, 7.4 on Windows and 7.3 on Linux.

Suggested Fix

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue-doc-bugIssue - error in documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions