PowerTip: Use PowerShell to Choose Random Letters

PowerTip: Use PowerShell to Choose Random Letters

  • Comments 1
  • Likes

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

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment
  • Super tip!!!