get_random.ps1 422 B

12345678910
  1. # Copyright 2025 BackendServerTemplate Authors. All rights reserved.
  2. # Use of this source code is governed by a MIT-style
  3. # license that can be found in the LICENSE file.
  4. $characters = 'abcdefghijklmnopqrstuvwxyz0123456789'
  5. $length = 40
  6. $randomString = -join (1..$length | ForEach-Object { $characters[(Get-Random -Maximum $characters.Length)] })
  7. Set-Content -Path "random_data.txt" -Value $randomString -Encoding UTF8