<aside> ๐Ÿ‘‹๐Ÿผ Welcome to this cheatsheet that will help you introduce all sorts of random functions to your Notion workspace.

Random Dynamic Number

Create a random number that changes every time you re-open a Notion page.

Great for shuffling database entries if you have a large amount and want to randomly surface some. Use it in your Zettelkasten or Meal Planner.

Random Static Number

Create a random number that will remain the same.

Great for building more complex random functions in Notion. Can think of another use case? Let me know on Twitter!

Random Timestamp

Create a random timestamp to add the โ€œshow me only one database entryโ€ functionality to Notion.

Great for showing only one unique entry that randomly changes every time you load the page. Use it for Random Quotes, to resurface Journal Entries or to randomly select a Workout Routine.

</aside>

Want to see it in action? Hereโ€™s a simple Random Quote Generator that uses all three ๐Ÿ‘‡๐Ÿผ

Random Quote Generator in Notion

Learn how to use random numbers in Notion

https://youtu.be/XwAGoEb5Xfg

Random Single Database Entry

This will display a different letter every time you re-open the page

Untitled

Hereโ€™s the backend that powers this function:

Randomizer

Get Random Numbers in Notion

Random Dynamic Number ๐Ÿ‘‡๐Ÿผ

(((((toNumber(substring(replaceAll(id(), "[a-z]", ""), 0, 8)) * 100011979) + 500067713) % 900066731) * (((timestamp(now()) * 800067089) + 800068411) % 800053967)) + 900067309) % 900066571

Random Static Number ๐Ÿ‘‡๐Ÿผ

Requires a Created Time Property labelled Created Time

(((((timestamp(prop("Created")) * 100011979) + 500067713) % 900066731) * (((toNumber(substring(replaceAll(id(), "[a-z]", ""), 0, 8)) * 800067089) + 800068411) % 800053967)) + 900067309) % 900066571

Random Timestamp ๐Ÿ‘‡๐Ÿผ

Requires properties named Randomizer Dynamic and Randomizer Static with the above formulas.

toNumber(substring(format(prop("Randomizer Dynamic") * prop("Randomizer Static")), 0, 13))

Random Number with Notion Buttons