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
  • 1 year ago
  • 2 hours ago
  • 4 years ago

Installs

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

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
}