# `RDF.BlankNode.Generator.Random`
[🔗](https://github.com/rdf-elixir/rdf-ex/blob/v3.0.1/lib/rdf/blank_node_generator/random.ex#L1)

An implementation of a `RDF.BlankNode.Generator.Algorithm` which returns `RDF.BlankNode`s with random identifiers.

Note, although this generator is faster than the `RDF.BlankNode.Generator.UUID` generator,
which also produces random identifiers, the random identifiers produced by
`RDF.BlankNode.Generator.Random` are not unique across multiple application runs,
since they are based on numbers returned by `:erlang.unique_integer/1`.

# `t`

```elixir
@type t() :: %RDF.BlankNode.Generator.Random{map: map(), prefix: String.t()}
```

# `new`

Creates a struct with the state of the algorithm.

## Options

- `prefix`: a string prepended to the generated blank node identifier

---

*Consult [api-reference.md](api-reference.md) for complete listing*
