Skip to content

Instantly share code, notes, and snippets.

@mattbalzan
Last active February 25, 2026 10:43
Show Gist options
  • Select an option

  • Save mattbalzan/bf18d4ddb8a7c4c20effd5fbb7e01ffa to your computer and use it in GitHub Desktop.

Select an option

Save mattbalzan/bf18d4ddb8a7c4c20effd5fbb7e01ffa to your computer and use it in GitHub Desktop.
One-liner to create random characters
$randChars = -join (1..10 | % {[char]((97..122) + (48..57) | Get-Random)})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment