Skip to content

Commit 4cf99cb

Browse files
authored
Random number script command (raycast#625)
1 parent 1222437 commit 4cf99cb

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

commands/math/random-number.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/bash
2+
3+
# Required parameters:
4+
# @raycast.schemaVersion 1
5+
# @raycast.title Generate Random Number
6+
# @raycast.mode silent
7+
# @raycast.packageName Math
8+
# @raycast.argument1 { "type": "text", "placeholder": "From"}
9+
# @raycast.argument2 { "type": "text", "placeholder": "To"}
10+
#
11+
# Optional parameters:
12+
# @raycast.icon 🔢
13+
#
14+
# Documentation:
15+
# @raycast.description Generate a number between a given range (inclusive) and then copy the value
16+
# @raycast.author Matt Gleich
17+
# @raycast.authorURL https://mattglei.ch
18+
19+
VALUE=$(jot -r 1 $1 $2)
20+
echo $VALUE | pbcopy
21+
22+
echo "Copied value of" $VALUE

0 commit comments

Comments
 (0)