Skip to main content

urn​

urn(
@id 0
) -> int

Returns a unique random number for a given URN identifier. Note that you must call initurn first to initialize the URN.


Arguments​

  • @id [int/float/symbol]: Identifier for URN. (default: 0).

Output​

Unique random number [int]


Usage​

initurn(@size 3 @id 'myurn'); ## initialize URN
for $i in 1...30 do print(urn(@id 'myurn')) ## call URN