From ba5d774fe195f5e515609b11422e4fdbaeb83ff2 Mon Sep 17 00:00:00 2001 From: "Joseph T. Lyons" Date: Thu, 2 Jul 2020 00:24:28 -0400 Subject: [PATCH] Add a histogram example to the random dice documentation (#2087) --- docs/commands/random.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/docs/commands/random.md b/docs/commands/random.md index 39bbf83b52..cd14758fc0 100644 --- a/docs/commands/random.md +++ b/docs/commands/random.md @@ -54,6 +54,30 @@ true ───┴──── ``` +```shell +> random dice --dice 1024 --sides 16 | wrap dice | histogram dice | sort-by count +────┬──────┬───────┬────────────────────────────────────────────────────────────────────────────────────────────────────── + # │ dice │ count │ frequency +────┼──────┼───────┼────────────────────────────────────────────────────────────────────────────────────────────────────── + 0 │ 15 │ 54 │ *********************************************************************** + 1 │ 7 │ 55 │ ************************************************************************ + 2 │ 1 │ 56 │ ************************************************************************* + 3 │ 16 │ 57 │ *************************************************************************** + 4 │ 5 │ 57 │ *************************************************************************** + 5 │ 3 │ 61 │ ******************************************************************************** + 6 │ 11 │ 62 │ ********************************************************************************* + 7 │ 14 │ 64 │ ************************************************************************************ + 8 │ 9 │ 65 │ ************************************************************************************* + 9 │ 12 │ 66 │ ************************************************************************************** + 10 │ 4 │ 67 │ **************************************************************************************** + 11 │ 2 │ 69 │ ****************************************************************************************** + 12 │ 8 │ 69 │ ****************************************************************************************** + 13 │ 6 │ 71 │ ********************************************************************************************* + 14 │ 13 │ 75 │ ************************************************************************************************** + 15 │ 10 │ 76 │ **************************************************************************************************** +────┴──────┴───────┴────────────────────────────────────────────────────────────────────────────────────────────────────── +``` + ## uuid * `random uuid`: Generate a random uuid4 string