src/Public/utils.ps1




function Get-RedkiteRandomCharacters($length, $characters) { 
    [CmdletBinding()]
    $random = 1..$length | ForEach-Object { Get-Random -Maximum $characters.length } 
    $private:ofs = "" 
    return [String]$characters[$random]
}