Random

Random is a simple command line tool for generating random strings.

Usage

With no arguments, random will generate 10 lines, each with 30 random alphanumeric characters. This is equivalent of running the program like this:

random -s 30x10 a-zA-Z0-9

You might want to print just one line:

random -s1

Character range can consist of following expressions:

Expressions can be combined. Range a-z0-5A-CX means any lowercase letter, numbers from 0 to 5 (ASCII 48 to 53), uppercase A, B, C and X.

Note that character that is present more than once will be produced more frequently. For example, aaa-b means that a has 3 times higher chance of being hit (considering a perfect, non-randomized distribution).

Unicode characters are not supported and will break into individual bytes.

Installation

Download and place anywhere in your system's path.