Skip to content

Type Method

random(using:)

iOS 26.0+ iPadOS 26.0+ Mac Catalyst 26.0+ macOS 26.0+ tvOS 26.0+ visionOS 26.0+ watchOS 26.0+
Generates a new random UUID.
static func random(using generator: inout some RandomNumberGenerator) -> UUID

Parameters

generator

The random number generator to use when creating the new random value.

Return Value

A random UUID.