Quantcast
Channel: TechNet Blogs
Viewing all articles
Browse latest Browse all 17778

PowerTip: Use PowerShell to Choose Random Letters

$
0
0

Summary: Use Windows PowerShell to choose random letters.

Hey, Scripting Guy! Question How can I use Windows PowerShell to arrange five letters in a random order?

Hey, Scripting Guy! Answer Use the Get-Random cmdlet, specify the letters as input values,
          and then use the –count parameter to specify how many to choose:

Get-Random -InputObject 'a','b','c','d','e' -Count 5


Viewing all articles
Browse latest Browse all 17778

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>