random_gib v0.0.1 RandomGib

Summary

Functions

Generates a new seed

Gets a single random item from a list

Gets some random letters of a given count. Returns a string

Gets some subset of a given source list or bitstring string

Starts a worker agent with a new seed

Functions

generate_seed(algorithm \\ :exs1024)

Generates a new seed.

Examples

iex> RandomGib.generate_seed() :ok

one_of(src)

Gets a single random item from a list.

some_letters(count)

Specs

some_letters(pos_integer) :: String.t

Gets some random letters of a given count. Returns a string.

Examples

result = RandomGib.some_letters(5)

some_of(src)

Gets some subset of a given source list or bitstring string.

start_link()

Starts a worker agent with a new seed.