Skip to content

summink/sumi-plugin-rand

Repository files navigation

Sumi Plugin Rand

Description

Generate random values, including integers, floats, and strings.

Install

sumi plugin add rand@latest

Usage

sumi rand [options]

Options

  • --int - generate integer.

  • --float - generate float.

  • --string - generate string.

  • --range <chars> - set random charsets.

    • default: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".
  • --min <n> - Random minimum value.

    • default: 1
  • --max <n> - Random maximum value.

    • default: 10000
  • --copy - If set, copy result to clipboard.

Examples

Generate a random integer:

sumi rand --int

Generate a random number within a range:

sumi rand --int --min 10 --max 100

Generate a random float:

sumi rand --float

Generate a random string:

sumi rand --string

Generate a random string with a custom charset:

sumi rand --string --range abc123

Copy result to clipboard:

sumi rand --string --copy

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages