---
id: uuid-v4
name: Uuid.v4
category: uuid
kind: namespace-method
tokens: Uuid.v4
sig: Uuid.v4() -> string
tip: Explicit alias for Uuid.new — a random (v4) UUID.
order: 2
ns: Uuid
member: v4
---
An explicit alias for Uuid.new: generates a **v4** (random) UUID in canonical lowercase text form. Use this spelling when the surrounding code also uses Uuid.v7 and naming both by version reads more clearly than new versus new_v7. The behaviour, entropy, and non-determinism caveat are identical to Uuid.new.
```ludic
program V4 {
entry {
let a = Uuid.v4()
let b = Uuid.v4()
if a != b { print(1) } # two draws differ
}
}
```