PoshCode Archive  All files named "Select-Random.ps1"

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

History for Select-Random.ps1

2018-06-10
14:24
Select a user-defined number of random elements from the collection … which can be passed as a parameter or input via the pipeline. An improvement over http://www.powershellcentral.com/scripts/60 which allows you to select more than one item, and doesn’t copy the full collection into RAM. file: [6c841f5dd1] check-in: [0c5644fe85] user: Joel Bennett branch: trunk, size: 3562
14:05
Selects a random element from the collection either passed as a parameter or input via the pipeline. file: [4ebb4e356c] check-in: [39b5baf902] user: unknown branch: trunk, size: 1079
12:56
Added: Select a user-defined number of random elements from the collection … which can be passed as a parameter or input via the pipeline. An improvement over http://www.powershellcentral.com/scripts/60 which allows you to select more than one item, but offers the option to collect the pipeline into RAM to trade speed for memory use (replaces 81 and 83). file: [d4c8ea2e20] check-in: [9a51cb952b] user: Joel Bennett branch: trunk, size: 4643