# Publish: Random/Dice Plugin

**URL:** <https://forum.obsidian.md/t/publish-random-dice-plugin/7278>\
**Category:** Feature requests\
**Tags:** publish\
**Created:** [October 19, 2020, 10:00pm UTC](https://forum.obsidian.md/t/publish-random-dice-plugin/7278 "2020-10-19T22:00:16Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Erick\_James\_Dodge](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/e/f17d59/32.png) [@Erick\_James\_Dodge](https://forum.obsidian.md/u/Erick_James_Dodge)\
**Post date:** [October 19, 2020, 10:00pm UTC](https://forum.obsidian.md/t/publish-random-dice-plugin/7278/1 "2020-10-19T22:00:17Z")

</div>

It would be nice for the visitors to go to a random page by clicking the plugin dice icon.

---

<div class="post-metadata">

**Author:** ![santi](https://forum.obsidian.md/user_avatar/forum.obsidian.md/santi/32/93240_2.png) [@santi](https://forum.obsidian.md/u/santi)\
**Post date:** [October 19, 2020, 10:10pm UTC](https://forum.obsidian.md/t/publish-random-dice-plugin/7278/2 "2020-10-19T22:10:52Z")

</div>

that’s a really cool idea. The random note community plugin is great. Would love to use something like it for obsidian publish!

---

<div class="post-metadata">

**Author:** ![santi](https://forum.obsidian.md/user_avatar/forum.obsidian.md/santi/32/93240_2.png) [@santi](https://forum.obsidian.md/u/santi)\
**Post date:** [May 17, 2023, 6:23pm UTC](https://forum.obsidian.md/t/publish-random-dice-plugin/7278/3 "2023-05-17T18:23:34Z")

</div>

Hey! I’ve actually been very curious to implement this. Perhaps there’s a way to achieve it through publish.js

The only alternative I found so far is to manually add every page to a service like this one called [Nimble Links](https://www.nimblelinks.com/redirect-randomly/qdgg8bdz/edit) but it’s quite expensive, and still too much manual work

Would love to hear if anyone else has a better solution with javascript on the site?

---

<div class="post-metadata">

**Author:** ![Metta](https://forum.obsidian.md/user_avatar/forum.obsidian.md/metta/32/89522_2.png) [@Metta](https://forum.obsidian.md/u/Metta)\
**Post date:** [February 21, 2025, 8:17am UTC](https://forum.obsidian.md/t/publish-random-dice-plugin/7278/4 "2025-02-21T08:17:21Z")

</div>

Just wondering if anyone has figured out a way to rotate between random notes in Obsidian publish?

I would _love_ to be able to do this. In fact, having this option would be all I need to migrate one of my big online libraries onto Obsidian.

---

<div class="post-metadata">

**Author:** ![beto](https://forum.obsidian.md/user_avatar/forum.obsidian.md/beto/32/79302_2.png) [@beto](https://forum.obsidian.md/u/beto)\
**Post date:** [February 21, 2025, 10:11am UTC](https://forum.obsidian.md/t/publish-random-dice-plugin/7278/5 "2025-02-21T10:11:59Z")

</div>

This sounds like fun, and I could really use it too. I’ll see how I can implement it and keep you posted.

A reminder for myself 😉  
2025-02-21T23:44:00Z

---

<div class="post-metadata">

**Author:** ![gsf](https://forum.obsidian.md/user_avatar/forum.obsidian.md/gsf/32/6932_2.png) [@gsf](https://forum.obsidian.md/u/gsf)\
**Post date:** [February 21, 2025, 1:52pm UTC](https://forum.obsidian.md/t/publish-random-dice-plugin/7278/6 "2025-02-21T13:52:30Z")

</div>

I would like to have this too! I saw that there are ways, but too complicated for me to implement.  
I like how wikipedia allows it, with just this link (without the \ !)

\https://en.wikipedia.org/wiki/Special:Random

---

<div class="post-metadata">

**Author:** ![beto](https://forum.obsidian.md/user_avatar/forum.obsidian.md/beto/32/79302_2.png) [@beto](https://forum.obsidian.md/u/beto)\
**Post date:** [February 22, 2025, 1:06am UTC](https://forum.obsidian.md/t/publish-random-dice-plugin/7278/7 "2025-02-22T01:06:12Z")

</div>

Okay, we got something—probably not what most of you all desire, but here’s what I was able to achieve:

Using a Python script, I scan multiple directories for Markdown files and extract the `permalink` from their YAML properties—this is essential for maintaining clean URLs when using Obsidian Publish. The script generates a JSON file that includes both the valid permalinks and those that were excluded. Then, by integrating this JSON into a Bolt.new component, you can deploy a random note feature on your site.

**Limitations:**

- You’ll need to rerun the Python script every time you add new pages.
- Update your Bolt.new component with the new data and adjust the iframe’s URL accordingly.

For a demo and a full breakdown, check out: [OBSIDIAN.publish.random.note](https://www.beto.group/obsidian.publish.random.note)

---

<div class="post-metadata">

**Author:** ![Metta](https://forum.obsidian.md/user_avatar/forum.obsidian.md/metta/32/89522_2.png) [@Metta](https://forum.obsidian.md/u/Metta)\
**Post date:** [April 28, 2025, 4:23pm UTC](https://forum.obsidian.md/t/publish-random-dice-plugin/7278/8 "2025-04-28T16:23:35Z")

</div>

Beto! This looks fabulous! 😀

I just now had a chance to take a look at your new plugin, and I’m eager to give it a try. I don’t have any experience with Python, yet ~ but my partner does ~ so once he and I can coordinate a time to set things up, I’ll be sure to give it a test run, and then let you know if I have any additional questions.

Thanks again ~ and thanks also for providing a place to host/run the necessary script! 🙏
