Random Includes and Random Quotes (Fortune Cookies)


These are Trac wiki macros to pick a random selection or selections from a page that contains bulleted items.

RandomInclude includes some number of bulleted items on that page. The purpose of this macro is to display a sample of pages from your wiki.

RandomQuote includes one random item from that page, and strips the bullet from it. It is used to include a changing fortune cookie on a page.

Find 10 bulleted (*) items on RandomPage and include those items in the current page:


Display a (pseudo-)randomly chosen quote from a source page "Fortune Cookies":


Display a quote from QuotePage:


Bugs/Feature Requests

Existing bugs and feature requests for RandomIncludePlugin are here.

If you have any issues, create a new ticket.


0 / 1


Download the zipped source from here.


You can check out RandomIncludePlugin from here using Subversion, or browse the source with Trac.


General instructions on installing Trac plugins can be found on the TracPlugins page.

Recent Changes

16493 by rjollos on 2017-04-15 08:20:01
Fix indentation
2908 by Rottenchester on 2007-12-15 19:07:05
Put license and url in setup.
2907 by Rottenchester on 2007-12-15 13:57:24
Initial import.


Author: Rottenchester
Maintainer: RottenChester

Last modified 8 years ago Last modified on Oct 15, 2016, 9:08:38 PM

Attachments (1)

  • (874 bytes) - added by ystungar1@… 15 years ago. I was getting map error. The solution for this is attached in the Here I replaced , with % for the sourcepage so that the page could be rendered correctly and give correct output.

Download all attachments as: .zip