henchman v0.3.0 Henchman.Randomizer
Random string generator module.
Summary
Functions
Generate random string that in multiple type. Default type is alphanumeric
Functions
Specs
generate(pos_integer, atom) :: String.t
Generate random string that in multiple type. Default type is alphanumeric
.
Supported types
:alphanumeric
- Random alphanumeric string:numeric
- Random numeric only string:upper
- Random non-numeric upper case string:lower
- Random non-numeric lower case string
Example
iex> Henchman.Randomizer.generate(20)
iex> Henchman.Randomizer.generate(20, :numeric)