Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

generates random string in erlang

tree: d8a410d9d7

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 ebin
Octocat-spinner-32 src
Octocat-spinner-32 README
Octocat-spinner-32 rebar
README
Erlang library that simply generates a random string.

It has one function get.

Two parameters:
-  the length of the string
-  the list of string characters from which to randomly choose

This library has been packaged with rebar.

So you can use randomstring from any instance of the Erlang console by installing in the erlang library directory.

This is usually found in :
/usr/local/lib/erlang/lib/

Once in the directory, install randomstring with a git clone.

And voila!  You can use randomstring from the Erlang console in the following way:

>  randomstring:get(5, "1234567890qwertyuiop").
>  "8j5dp"
Something went wrong with that request. Please try again.