I'm experimenting and having a look at creating a randomizer from two lists.
$List = ’Red’,’Pink’,’Green’
$List1 = ’Warning’,’Election’,’Marriage’
What I'm looking to do is pick a random word from $List
and $List1
. I'm aware that you can pick from a singular with :
Get-Random -InputObject $List
However, I'm not quite sure how I would be able to grab from both lists and combine them.
My expected output would be:
RedMarriage
PinkWarning
GreenElection
Aucun commentaire:
Enregistrer un commentaire