.. index:: ids(Representation,Bytes) .. _ids/2: .. rst-class:: right **object** ``ids(Representation,Bytes)`` ============================= * ``Representation`` - Text representation for the identifier. Possible values are ``atom``, ``chars``, and ``codes``. * ``Bytes`` - Number of bytes of randomness. Generator of random identifiers. | **Availability:** | ``logtalk_load(ids(loader))`` | **Author:** Paulo Moura | **Version:** 1:0:0 | **Date:** 2022-11-23 | **Compilation flags:** | ``static, context_switching_calls`` | **Uses:** | :ref:`base64 ` | :ref:`fast_random ` | :ref:`list ` | :ref:`os ` | **Remarks:** | (none) | **Inherited public predicates:** | (none) .. contents:: :local: :backlinks: top Public predicates ----------------- .. index:: generate/1 .. _ids/2::generate/1: ``generate/1`` ^^^^^^^^^^^^^^ Generate a random identifier. | **Compilation flags:** | ``static`` | **Template:** | ``generate(Identifier)`` | **Mode and number of proofs:** | ``generate(--textids)`` - ``one`` ------------ Protected predicates -------------------- (no local declarations; see entity ancestors if any) Private predicates ------------------ (no local declarations; see entity ancestors if any) Operators --------- (none) .. seealso:: :ref:`ids `, :ref:`uuid `, :ref:`ulid `