Random Scripture Generator
Generate random scripture passages from Bible, Quran, Bhagavad Gita, Dhammapada, Tao Te Ching, and Torah. Filter by source, save favorites, and explore sacred texts.
Press Generate to receive a random scripture passage.
Favorites (0)
About
Selecting scripture passages at random removes confirmation bias from devotional reading. Readers naturally gravitate toward familiar passages, which narrows exposure to roughly 15% of any given text over a lifetime. This generator draws from a curated corpus spanning six major traditions - King James Bible, Quran (Sahih International translation), Torah (Tanakh selections), Bhagavad Gita, Dhammapada, and Tao Te Ching - using a cryptographically seeded selection function (crypto.getRandomValues) rather than the statistically weaker Math.random. A no-repeat buffer ensures every passage surfaces before any is shown twice.
The tool approximates uniform distribution across selected sources. Note: passage counts differ greatly between texts (the Bible contains over 31,000 verses; the Tao Te Ching has 81 chapters), so enabling all sources simultaneously weights toward shorter collections per-draw. Filter to a single source for true uniform sampling within that text. Favorites persist in browser storage only - no server, no account, no tracking.
Formulas
Random passage selection uses a cryptographically secure uniform distribution. Given a filtered corpus of N passages, the index i is computed as:
where r ∈ [0, 1) is derived from crypto.getRandomValues producing a 32-bit unsigned integer divided by 232:
The no-repeat buffer uses a Fisher-Yates shuffle of indices [0, N − 1]. Each draw pops from the shuffled stack. When empty, the stack is reshuffled. This guarantees every passage appears exactly once per cycle. The probability of any passage appearing in position k is:
Where N = total passages in filtered corpus, i = selected index, r = cryptographic random float, P(k) = probability of any passage at position k.
Reference Data
| Sacred Text | Tradition | Language of Origin | Approx. Verses/Chapters | Estimated Composition Period | Translation Used |
|---|---|---|---|---|---|
| Bible (Old Testament) | Judaism / Christianity | Hebrew, Aramaic | 23,145 verses | 1200 - 165 BCE | King James Version |
| Bible (New Testament) | Christianity | Koine Greek | 7,957 verses | 50 - 100 CE | King James Version |
| Quran | Islam | Classical Arabic | 6,236 ayat | 609 - 632 CE | Sahih International |
| Torah (Pentateuch) | Judaism | Biblical Hebrew | 5,845 verses | 1200 - 400 BCE | JPS Tanakh |
| Bhagavad Gita | Hinduism | Sanskrit | 700 shlokas | 400 - 200 BCE | Eknath Easwaran |
| Dhammapada | Theravada Buddhism | Pali | 423 verses | 300 BCE | Acharya Buddharakkhita |
| Tao Te Ching | Taoism | Classical Chinese | 81 chapters | 400 BCE | Stephen Mitchell |
| Psalms (Bible) | Judaism / Christianity | Hebrew | 150 psalms (2,461 verses) | 1000 - 300 BCE | King James Version |
| Proverbs (Bible) | Judaism / Christianity | Hebrew | 915 verses | 900 - 700 BCE | King James Version |
| Ecclesiastes (Bible) | Judaism / Christianity | Hebrew | 222 verses | 450 - 180 BCE | King James Version |
| Upanishads (Principal) | Hinduism | Sanskrit | 13 texts, variable | 800 - 200 BCE | Various |
| Guru Granth Sahib | Sikhism | Gurmukhi | 1,430 pages | 1604 CE | Sant Singh Khalsa |