Skip to content

Codes Generator can generate random codes from the library of symbols with Prefixes and Postfixes.

Notifications You must be signed in to change notification settings

tit/codes_generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Codes Generator

Description

Codes Generator can generate random codes from the library of symbols with Prefixes and Postfixes.

Usage

$ ruby codes_generator.rb configuration_file
If configuration_file does not exist, it is created on the basis of the template.

Configuration file structure

count — count of codes
length — length one code with Prefix and Postfix
prefix — prefix code
postfix — postfix code
symbols — array of library of symbols
{
  "count": 42,
  "length": 15,
  "prefix": "FOO-",
  "postfix": "-BAR",
  "symbols": [
    "A",
    "B",
    "C",
    "D",
    "E",
    "F",
    "G",
    "H",
    "I",
    "J",
    "K",
    "L",
    "M",
    "N",
    "O",
    "P",
    "Q",
    "R",
    "S",
    "T",
    "U",
    "V",
    "W",
    "X",
    "Y",
    "Z",
    0,
    1,
    2,
    3,
    4,
    5,
    6,
    7,
    8,
    9
  ]
}

About

Codes Generator can generate random codes from the library of symbols with Prefixes and Postfixes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages