ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Random Everything

by kimpettersen ST2/ST3

Plugin for sublime text to generate random, ints, floats, strings and words

Details

  • 2016.08.20.12.39.13
  • github.​com
  • github.​com
  • 8 months ago
  • 2 minutes ago
  • 3 years ago

Installs

  • Total 10K
  • Win 5K
  • OS X 3K
  • Linux 2K
Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10
Windows 10 5 11 10 20 11 15 7 1 8 11 9 10 9 3 8 11 8 9 12 12 8 10 3 12 9 17 11 4 4 6 13 6 10 15 7 8 8 13 15 15 5 9 11 9 12
OS X 5 3 2 5 6 4 2 4 1 3 5 7 3 12 4 1 4 4 2 2 7 4 1 1 9 6 2 5 4 2 2 1 10 4 5 7 5 2 13 10 4 6 5 2 4 6
Linux 2 5 2 5 7 3 6 4 5 7 2 4 4 5 3 0 4 0 4 4 4 5 5 3 10 5 2 1 1 2 7 5 3 5 7 2 3 7 6 4 6 9 4 5 1 6

Readme

Source
raw.​githubusercontent.​com

random-sublime-text-plugin

Plugin for sublime text to generate random, ints, floats, strings and words.

It works in Sublime Text 2 and ST3

Example

Example

Usage

This plugin can only be accessed through the Cmd/Ctrl+Shift+P command.

Type random and you get the following choices:

  • Random:Int - requires a range from a-b separated with a: -. Default: 1-100
  • Random:Float - requires a range from a-b separated with a: -. Default: 1-100
  • Random:Letters - generatates a random string of lower and upper -case letters with a length between 3 and 17
  • Random:Letters and numbers - generatates a random string of lower and upper -case letters and numbers with a length between 3 and 17
  • Random:Country - picks a random country
  • Random:Word - picks a random word from /usr/share/dict/words
  • Random:Text - picks 24 random words from /usr/share/dict/words
  • Random:Date - picks a random ISO-8601 Date
  • Random:First name - picks a random first name from the built-in datafile
  • Random:Last name - picks a random last name from the built-in datafile
  • Random:Full name - picks a random full name from the built-in datafiles
  • Random:E-mail - picks a random E-mail address
  • Random:Url - generates a URL using random words from /usr/share/dict/words
  • Random:Hex Color - generates a random hex color formatted “#abc123”
  • Random:IPv4 Address - generates a random ipv4 ip address
  • Random:IPV6 Address - generates a random ivp6 ip address

Overridable Settings

Random: E-Mail

  • random_email_top_level_domain_override - Allows overriding available email TLDs e.g. ["com","org"]. Defaults are ["com", "net", "co.uk", "org", "edu"]
  • random_email_main_domain_override - Allows overriding of available email main domains e.g. ["gmail","yahoo", "hotmail"]. If not specified, a random string will be used.

  • max_year and min_year defines a date range

Complete Settings Example

{
    "random_email_top_level_domain_override": ["com", "net", "co.uk", "org", "edu"],
    "max_year": 2000,
    "min_year": 1999
}