暫無描述

randomstring.ps1 316B

123456789
  1. $chars = [char[]]([char[]]([char]33..[char]126 + [char]161..[char]255)) | sort-object {Get-Random}
  2. $string = ""
  3. for($i=0; $i -lt 20; $i++) {
  4. $string += $chars[$i % $chars.Length]
  5. }
  6. Add-Type -AssemblyName System.Speech
  7. $speak = New-Object System.Speech.Synthesis.SpeechSynthesizer
  8. $speak.Speak($string)

Powered by TurnKey Linux.