Title: Allow combining Get-Random -Count with (implied) -Minimum / -Maximum to create multiple random values · Issue #8986 · PowerShell/PowerShell · GitHub
Open Graph Title: Allow combining Get-Random -Count with (implied) -Minimum / -Maximum to create multiple random values · Issue #8986 · PowerShell/PowerShell
X Title: Allow combining Get-Random -Count with (implied) -Minimum / -Maximum to create multiple random values · Issue #8986 · PowerShell/PowerShell
Description: Summary of the new feature/enhancement Currently, you can only obtain multiple values with -Count if you supply an input collection to select random elements from. However, sometimes you want to generate multiple random values from a giv...
Open Graph Description: Summary of the new feature/enhancement Currently, you can only obtain multiple values with -Count if you supply an input collection to select random elements from. However, sometimes you want to ge...
X Description: Summary of the new feature/enhancement Currently, you can only obtain multiple values with -Count if you supply an input collection to select random elements from. However, sometimes you want to ge...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/8986
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Allow combining Get-Random -Count with (implied) -Minimum / -Maximum to create multiple random values","articleBody":"# Summary of the new feature/enhancement\r\n\r\nCurrently, you can only obtain multiple values with `-Count` if you supply an _input collection_ to select random elements from.\r\n\r\nHowever, **sometimes you want to generate multiple random values from a given _range_,** such as \"generate 3 random values in the range 0 to 1\":\r\n\r\n```powershell\r\n# WISHFUL THINKING - currently, you have to call Get-Random in a *loop*.\r\nPS> Get-Random -Maximum 1.0 -Count 3\r\n0.00964209344687038\r\n0.399765062797705\r\n0.589964029188251\r\n```\r\n\r\n# Proposed technical implementation details\r\n\r\nAllow combining parameter `-Count` with (implied) `-Minimum` and /or `-Maximum` as well, in which case `-Count` simply specifies how many values in the range to generate.\r\n\r\n","author":{"url":"https://github.com/mklement0","@type":"Person","name":"mklement0"},"datePublished":"2019-02-26T02:38:01Z","url":"https://github.com/PowerShell/PowerShell/issues/8986"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:91879848-d03f-736d-369a-2e0e61edc687 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C0A6:F428C:61384:83F72:6AFD48BE |
| html-safe-nonce | 044ca15d02e0cbb7f0ac351f087c14db2bf1d35736053e474b8f05e446958374 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMEE2OkY0MjhDOjYxMzg0OjgzRjcyOjZBRkQ0OEJFIiwidmlzaXRvcl9pZCI6IjM2OTc4MjkxODEzNTkyMTI3MzQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 14a9a27c7913862774bcef8b406131cab2ed6032fd21c3189e26e34d0c54d4b4 |
| hovercard-subject-tag | issue:414402505 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/8986/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f8a560e1626a0c1b9010a26f5a10c6e18090dd0003f14e06f9896f716bab5b8c/PowerShell/PowerShell/issues/8986 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f8a560e1626a0c1b9010a26f5a10c6e18090dd0003f14e06f9896f716bab5b8c/PowerShell/PowerShell/issues/8986 |
| og:image:alt | Summary of the new feature/enhancement Currently, you can only obtain multiple values with -Count if you supply an input collection to select random elements from. However, sometimes you want to ge... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mklement0 |
| hostname | github.com |
| expected-hostname | github.com |
| None | bdbacc25b921224ff0befcb9e629560a1255be51aec9991d6e3f95b5e9151474 |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 556dd37bb0aceffb25724e151b5d858b3265b40b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width