object

# `cuid2(Representation,Size,Alphabet)`

- `Representation` - Text representation for the Cuid2 identifier. Possible values are `atom`, `chars`, and `codes`.

- `Size` - Number of symbols in the Cuid2 identifier.

- `Alphabet` - Alphabet used for generating Cuid2 identifiers represented as an atom, list of characters, or list of character codes.

Cuid2 generator.

Availability:
`logtalk_load(cuid2(loader))`
Author: Paulo Moura
Version: 1:0:0
Date: 2026-02-26
Compilation flags:
`static, context_switching_calls`
Implements:
`public` cuid2_protocol
Uses:
fast_random(Algorithm)
list
os
Remarks:
(none)
Inherited public predicates:
generate/1

## Public predicates

(no local declarations; see entity ancestors if any)

## Protected predicates

(no local declarations; see entity ancestors if any)

## Private predicates

(no local declarations; see entity ancestors if any)

## Operators

(none)

See also

cuid2, ids(Representation,Bytes), ksuid(Representation,Alphabet), nanoid(Representation,Size,Alphabet), snowflakeid(Representation,EpochMilliseconds,TimeUnitMilliseconds,TimestampBits,NodeBits,SequenceBits,Node), ulid(Representation), uuid(Representation)