PetName v0.1.0 PetName View Source

This module will return a nickname for your pet or unfortunate loved one.

Link to this section Summary

Functions

Get a nice pet name.

Get a random element from a list

Link to this section Functions

Get a nice pet name.

Examples

iex> :rand.seed(:exsplus, {9, 8, 7}) # seed prng
iex> PetName.get()
"fuzzy monkey"

Get a random element from a list

Examples

iex> PetName.rando()
nil

iex> :rand.seed(:exsplus, {1, 1, 1}) # seed prng
iex> PetName.rando(1..100)
11