magic v0.3.5 Random
The Random
provides functions that about random function
Link to this section Summary
Link to this section Functions
Random generate a 16 length string
Examples
iex> Random.random()
"9nNc2OaQJowEEucW"
iex> Random.random(32)
"SpMkGZ5fvapMlvA8ALG8n3YQShPm91wB"
Random generate a specifc length string
Notes: size must be an Integer and greater than ZERO
iex> Random.random(-1)
** (ArgumentError) size must be greater than ZERO, got -1
iex> Random.random("abd")
** (ArgumentError) size must be Integer, got abd