ShareShortcuts

Random Number 2.0

Thank you by : MavLiker(https://mavliker.net/)

aewessomen4
Fork “Random Number 2.0”

Built something new on top of this Shortcut? Share it as a fork: it becomes a Shortcut of your own, which you manage, and both pages link to each other so aewessomen4 gets credit.

  1. 1Get the Shortcut and change it in the Shortcuts app. Give it a name of its own.
  2. 2Share it from the Shortcuts app and copy the iCloud link.
  3. 3Come back here, paste the link and describe what is different, e.g. “Added a step that uses Apple Intelligence to personalise the text.”
Downloads
20K
Saved
0
Actions
14
Category
API
Version
1.0
Language
EN

Thank you by : MavLiker

What's New

Version 1.0

First release

Version History
1.0 Oct 6, 2024

First release

What it does

14 actions
  1. Ask for Input
    What is the minimum number?
  2. Ask for Input
    What is the maximum number?
  3. Random Number
  4. If
  5. Show Alert
  6. Stop This Shortcut
  7. If
  8. Show Notification
    The number is …
  9. Wait
  10. Choose from Menu
    Do you want to go again?
  11. Choose from Menu
    ye
  12. Run Shortcut
    New Shortcut 2
  13. Choose from Menu
    Two
  14. Stop This Shortcut

View as code
Beta

Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.

#define color darkgray
#define glyph circledPi

const ProvidedInput = prompt("What is the minimum number?", "Number")
const ProvidedInput1 = prompt("What is the maximum number?", "Number")
randomNumber(ProvidedInput, ProvidedInput1)

if ProvidedInput1 < ProvidedInput {
	confirm("This operation will not work. Try again!")
	stop()
} else {
}
showNotification("The number is {}")
wait(2)

menu "Do you want to go again?" {
item "Yes":
	runSelf()
item "No":
	stop()
}
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

You Might Also Like

See All
Advertisement