Public/Get-RandomGuid.ps1

function Get-RandomGuid {
    <#
.SYNOPSIS
    Generates a list of random GUIDs
.DESCRIPTION
    The Get-RandomGuid cmdlet generates a list of random GUIDs based on the input number
.PARAMETER Number
    Number of GUIDs to generate.
.EXAMPLE
    Get-RandomGuid -Number 10
    Accept input data from the parameter
.EXAMPLE
    10 | Get-RandomGuid
    Accept input data from the pipeline
.INPUTS
    System.Int
.OUTPUTS
    System.Guid
    #>


    [CmdletBinding(
        DefaultParameterSetName = 'Parameter Set 1',
        PositionalBinding = $true)]
    [OutputType([System.Guid])]
    Param (
        [Parameter(
            Mandatory = $true,
            Position = 0,
            ValueFromPipeline = $true,
            ValueFromPipelineByPropertyName = $true,
            ParameterSetName = 'Parameter Set 1')]
        [ValidateNotNull()]
        [ValidateNotNullOrEmpty()]
        [Int]
        $Number
    )

    begin {
        Write-Verbose "Starting GUID generation..."
    }

    process {
        1..$Number | ForEach-Object { New-Guid }
    }

    end {
        Write-Verbose "GUID generation finished."
    }
}