-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
issue-doc-bugIssue - error in documentationIssue - error in documentation
Description
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
- https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/get-random?view=powershell-5.1#example-9-use-the-setseed-parameter
- https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/get-random?view=powershell-7.2#example-9-use-the-setseed-parameter
- https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/get-random?view=powershell-7.3#example-9-use-the-setseed-parameter
- https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/get-random?view=powershell-7.4#example-9-use-the-setseed-parameter
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
Labels
issue-doc-bugIssue - error in documentationIssue - error in documentation