Skip to content

yazdotai/randomstring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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"

About

generates random string in erlang

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published