ソースを参照

Upload files to ''

Ethan 2 年 前
コミット
653bb2b49e
共有1 個のファイルを変更した9 個の追加0 個の削除を含む
  1. 9
    0
      randomstring.ps1

+ 9
- 0
randomstring.ps1 ファイルの表示

@@ -0,0 +1,9 @@
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
+
7
+Add-Type -AssemblyName System.Speech
8
+$speak = New-Object System.Speech.Synthesis.SpeechSynthesizer
9
+$speak.Speak($string)

Powered by TurnKey Linux.