Scan with your iPhone to install
Preview
Pick a name randomly
What's New
Version 1.0
First release
What it does
7 actions-
CommentAuthor: Ari Rafiq Pick a name randomly.
-
Ask for InputNames? E.g. Ari Robert David
-
Split Text
-
Count
-
Random Number
-
Get Item from List
-
Show Result
View as code
Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.
#define color darkblue
#define glyph sloMo
/*
Author: Ari Rafiq
Pick a name randomly.
*/
const ProvidedInput = prompt("Names? E.g. Ari Robert David")
const SplitText = splitText(ProvidedInput, " ")
const Count = count(SplitText)
const RandomNumber = randomNumber(1, Count)
getListItem(SplitText, RandomNumber)
show()
Open in Cherri Playground
Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.
Ratings & Reviews
Write a Review–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings
No reviews yet. Be the first to share what you think!
Advertisement
More by arirafiq
You Might Also Like
Advertisement