ShareShortcuts

Pick A Number

Features: Rolls a classic dice Or Picks a number between custom numbers

sameerhereiki
Fork “Pick A Number”

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 sameerhereiki 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
51K
Saved
1
Actions
27
Category
Fun
Version
1.2
Language
EN

Features: Rolls a classic dice

Or Picks a number between custom numbers

What's New

Version 1.2

Added updates notifs

Version History
1.2 Apr 15, 2021

Added updates notifs

1.1 Apr 15, 2021

Fixed a bug where custom dice didn’t work

1.0 Apr 14, 2021

First release

What it does

27 actions
  1. Comment
    Thanks for downloading my shortcut if there is any bugs contact me on discord:demonslayer64#9649 or in the coments
  2. Text
  3. Set Variable
    Localversion
  4. URL
    https://shareshortcuts.com/jsonstore/1292/jeff-6077d508c2da9.json
  5. Get Contents of URL
    …
  6. Set Variable
    Onlineversion
  7. Nothing
  8. If
  9. Show Alert
  10. Open URLs
  11. If
  12. Show Alert
  13. Show Alert
  14. Nothing
  15. Choose from Menu
  16. Choose from Menu
    Classic dice
  17. Random Number
  18. Show Result
  19. Choose from Menu
    Custom dice
  20. Ask for Input
    First number
  21. Set Variable
    Num1
  22. Nothing
  23. Ask for Input
    Second number
  24. Set Variable
    Num2
  25. Nothing
  26. Random Number
  27. Show Result

View as code
Beta

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

#include 'actions/web'
#define color green
#define glyph braille

// Thanks for downloading my shortcut if there is any bugs contact me on discord:demonslayer64#9649 or in the coments

const Text = "{\\"version\\":\\"1.2\\"}"
@Localversion = Text
url("https://shareshortcuts.com/jsonstore/1292/jeff-6077d508c2da9.json")
downloadURL()
@Onlineversion
nothing()

if Text != @Onlineversion {
	confirm("There is a new update available please download it")
	openURL("https://shareshortcuts.com/shortcuts/1292-pick-a-number.html")
} else {
	confirm("How to use:\nClassic dice: 1-6\nCustom dice: first num - second num")
	confirm("Thanks for downloading my shortcut if there is any bugs contact me on discord:demonslayer64#9649 or in the coments")
	nothing()
	menu nil {
	item "Classic dice":
		randomNumber(1, 6)
		show()
	item "Custom dice":
		prompt("First number", "Number")
		@Num1
		nothing()
		prompt("Second number", "Number")
		@Num2
		nothing()
		randomNumber(@Num1, @Num2)
		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 sameerhereiki

See All

You Might Also Like

See All
Advertisement