when relevant content is
added and updated.
I often need to create a random string of characters. Here’s a simple function to achieve that:
The required length is passed as an integer parameter. Use the range operator as a counter and in Foreach-Object generate a random number between 97 and 122. Convert that to a char (a=97 and z-122) and add to the array. Join the array of chars to create the string.