PowerTip: Select Two Random Numbers from 20 Possibilities
Summary: Use Windows PowerShell to select two random numbers from twenty possible numbers.
How can I use Windows PowerShell to select two of twenty attendees at user group to receive prizes?
Create a range of input numbers with the Get-Random cmdlet, then use the –Count parameter to retrieve
two random numbers:
Get-Random -InputObject (1..20) -Count 2