Randomizer (Elasticsearch Elixir Bulk Processor v0.1.7)

Random string generator module.

Link to this section Summary

Functions

Generate random string based on the given legth. It is also possible to generate certain type of randomise string using the options below

Link to this section Functions

Link to this function

randomizer(length, type \\ :all)

Generate random string based on the given legth. It is also possible to generate certain type of randomise string using the options below:

  • :all - generate alphanumeric random string
  • :alpha - generate nom-numeric random string
  • :numeric - generate numeric random string
  • :upcase - generate upper case non-numeric random string
  • :downcase - generate lower case non-numeric random string

Example

iex> Iurban.String.randomizer(20) //"Je5QaLj982f0Meb0ZBSK"