Advertisement
wetyukmnbxc

Untitled

Mar 12th, 2023
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. Here is a PowerShell script to store all alphabets from A to Z and display them randomly five times:
  2.  
  3. $alphabets = "a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"
  4.  
  5. for($i = 0; $i -lt 5; $i++)
  6. {
  7. $randomAlphabets = Get-Random -InputObject $alphabets -Count 26
  8. Write-Host $randomAlphabets
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement