I'm trying to have random characters from text file, but something is wrong with my script.
My script:
#get the cotent of a file to a variable
$chars = Get-Content -Path C:\temp\UnicodeCharacters.txt
#get 5 random characters
$sample = $chars | Get-Random -Count 5
echo $sample
What am I doing wrong?
`
Aucun commentaire:
Enregistrer un commentaire