Generates prefixed random names for naming computers.
This package can be installed
by adding namerx
to your list of dependencies in mix.exs
:
def deps do
[
{:namerx, "~> 0.1.0"}
]
end
If no argument is supplied to the generator, the prefix by default will be DESKTOP
:
iex(1)> Namerx.generate
"DESKTOP-4IR7FQT09"
If a prefix is supplied, it will be returned with the generated name:
iex(1)> Namerx.generate("SERVER")
"SERVER-4IR7FQT09"