Page 1 of 1

PowerShell: Random Select

Posted: Mon Jul 08, 2019 10:30 am
by hamid
Hello Club!

With PowerShell, when you're creating Variables with contents you can use Get-Random Command in order to choose randomly from contents you've created.


Create a Variable called $Variable test with numbers in it.

= 1,2,3,4

Then call them randomly with the command below.

Get-Random $VariableTest