float= The Red Rook (cover).png

Parallel Visions: City of Angels City of Demons ebook and trade paperback available on Amazon (or here).
The question of whether Vance was dead or not became more than academic when he found himself in a bathtub up to his chin in ice water like some forgotten cocktail garnish, a demonic woman standing over him, and no memory of how he got there.
Read free chapters of Parallel Visions: City of Angels City of Demons here
The Red Rook, sequel to Dispensing Justice and the second novel of Nova Genesis World is now available for Kindle or as a paperback at Amazon.
Read free chapters of Dispensing Justice here (or get it here).
Read free chapters of The Red Rook here (or get it here). -- Fritz Freiheit

Dispensing Justice (cover).png 20th Annual Writer's Digest Self-Published Book Awards - Honorable Mention.png

Test RandomFunctions

From FritzWiki
Jump to: navigation, search

Tests for RandomFunctions (PHP).

 {{#d2:}}  Returns 1 or 2.
 {{#d2:N}} Returns the sum of N d2 rolls.
 
 {{#d4:}}  Returns a die 4 roll. (i.e. 1 to 4)
 {{#d4:N}} Returns the sum of N d4 rolls.
 
 {{#d6:}}  Returns a die 6 roll. (i.e. 1 to 6)
 {{#d6:N}} Returns the sum of N d6 rolls.
 
 {{#d8:}}  Returns a die 8 roll. (i.e. 1 to 8)
 {{#d8:N}} Returns the sum of N d8 rolls.
 
 {{#d10:}}  Returns a die 10 roll. (i.e. 1 to 10)
 {{#d10:N}} Returns the sum of N d10 rolls.
 
 {{#d12:}}  Returns a die 12 roll. (i.e. 1 to 12)
 {{#d12:N}} Returns the sum of N d12 rolls.
 
 {{#d20:}}  Returns a die 20 roll. (i.e. 1 to 20)
 {{#d20:N}} Returns the sum of N d20 rolls.
 
 {{#d100:}}  Returns a die 100 roll. (i.e. 1 to 100)
 {{#d100:N}} Returns the sum of N d100 rolls.
 
 {{#dieRoll:}}    Returns a die 6 roll. (i.e. 1 to 6)
 {{#dieRoll:X}}   Returns a die X roll. (i.e. 1 to X)
 {{#dieRoll:X|Y}} Returns the sum of X die Y rolls.
 
 {{#coinFlip:}}    Returns 'heads' or 'tails'.
 {{#coinFlip:X}}   Returns X or 'tails'.
 {{#coinFlip:X|Y}} Returns X or Y.
2  Returns 1 or 2.
4 Returns the sum of 2 d2 rolls.

3  Returns a die 4 roll. (i.e. 1 to 4)
3 Returns the sum of 2 d4 rolls.

6  Returns a die 6 roll. (i.e. 1 to 6)
5 Returns the sum of 2 d6 rolls.

8  Returns a die 8 roll. (i.e. 1 to 8)
13 Returns the sum of 2 d8 rolls.

3  Returns a die 10 roll. (i.e. 1 to 10)
7 Returns the sum of N d10 rolls.

3  Returns a die 12 roll. (i.e. 1 to 12)
3 Returns the sum of 2 d12 rolls.

2  Returns a die 20 roll. (i.e. 1 to 20)
25 Returns the sum of 2 d20 rolls.

30  Returns a die 100 roll. (i.e. 1 to 100)
141 Returns the sum of 2 d100 rolls.

6    Returns a die 6 roll. (i.e. 1 to 6)
1   Returns a die X roll. (i.e. 1 to X)
4 Returns the sum of X die Y rolls.

{{#coinFlip:}}    Returns 'heads' or 'tails'.
{{#coinFlip:X}}   Returns X or 'tails'.
{{#coinFlip:X|Y}} Returns X or Y.