1.1.4 • Published 4 years ago

soothsayer v1.1.4

Weekly downloads
3
License
ISC
Repository
github
Last release
4 years ago

Utility classes to generate random values from the hexagrams of the I Ching. Overcomplicated random number generator.

Usage

npm i soothsayer

Then, import the module into your project

import ictable from 'soothsayer' or

import {
  generateHexagram,
  generateSecondaryHexagram,
  resolveHexagram
} from 'soothsayer

Now, calling generateHexagrams as many times as you wish, create a series of hexagrams. If you want, you can derive a second set of hexagrams from the first, by passing your original hexagram to generateSecondaryHexagram

Next, create several ranges of numbers. To each of those ranges, assign an interesting value. For example, a series of pitches:

1-8: C 9-16: D 17-24: E

...and so on...

Pass your hexagrams to resolveHexagram to get a number. Map that number back the the ranges your created and use the designated value in your project.

1.1.4

4 years ago

1.0.4

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago