Random Fuzzy Numbers

A ring with 3 gems.
Photo credit: Max Pixel.

This generator has its origins in the jewelry table. I wanted to have the generated jewelry to optionally have a number of gems set in them. But it felt boring to have just a simple numeric value like 3 or 15 gems. I put together this help table to produce results like a septet, dozens of or even four-score and ten gems adorning the jewelry.

More Specific Ranges

A {lib:number#common} call produces results from 1 to 99, while with {lib:number#rare} the result can vary between 100 and several millions. Please note that the results are fuzzy and not a full range of numbers is included for results above 30. The table attempts to imitate how humans express numbers, and can create results like close to a hundred or millions and millions.

You can set the desired range in more exact manner by calling subtables from {lib:number#one digit} to {lib:number#seven digits}.

Special Cases

I of course got carried away and added also some special subtables:

  • {lib:number#negative}
  • {lib:number#zero}
  • {lib:number#small number}
  • {lib:number#fraction}
  • {lib:number#one}
  • {lib:number#few}
  • {lib:number#many}
  • {lib:number#very many}
  • {lib:number#big number}
  • {lib:number#countless}
  • {lib:number#uncountable}
  • {lib:number#infinite}

These produce natural language variations in the indicated range. Especially the big number subtable is a testament to obsessiveness, as it includes both US and European variations of big numbers up to quingentilliard (10E3003). That will be one expensive piece of jewelry…

It is not possible to specify subtables for generators embedded in the blog, but the source data for this generator is available in the GitHub repository. You can copy and paste the .json file contents into the Generator Service text box and start experimenting with the generator. Subtables can be specified in the resultPattern string.

If you are already using Campaign Logger, open one of your campaign logs, click the cogwheel-shaped Options button, select Manage Custom Generators, then Add new generator… and paste the generator data in the text box. After you save the generator, click the Show Generators button in your campaign log to access the new generator.