How can I use Powershell to choose a random letter based on the given count and dynamically assign each to a unique variable?
I have this below code, but I am not sure how to go about doing the above, any ideas, please?
$Count =3
$a = Get-Random -InputObject 'a','b','c','d','e','f','g','h','i','j', 'k', 'l', 'm','n' -Count $Count
I expect the output of each letters to be stored in 3 different variables like Ar1, Ar2 and Ar3 ( and so on Arn if the $Count = n)