From dd116baa14d4be2865151cb1363ee697b1a09b93 Mon Sep 17 00:00:00 2001 From: Joe Ardent Date: Sun, 7 Nov 2021 13:31:24 -0800 Subject: [PATCH] Update docs, move to 2021 edition. --- Cargo.lock | 2 +- Cargo.toml | 6 +++--- README.md | 43 +++++++++++++++---------------------------- VERSION | 2 +- 4 files changed, 20 insertions(+), 33 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 0f5d644..453a3e1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -123,7 +123,7 @@ dependencies = [ [[package]] name = "randical" -version = "1.6.18" +version = "1.6.180" dependencies = [ "clap", "rand", diff --git a/Cargo.toml b/Cargo.toml index d441e3c..53de6e8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,8 +1,8 @@ [package] name = "randical" -version = "1.6.18" +version = "1.6.180" authors = ["Joe Ardent "] -edition = "2018" +edition = "2021" description = "A simple UNIX commandline utility to generate sequences of random values of different types." @@ -21,4 +21,4 @@ maintenance = { status = "actively-developed" } [dependencies] rand = "0.8" clap = "2" -uuid = "0.8" +uuid = { version = "0.8", default-features = false } diff --git a/README.md b/README.md index 8cee91e..ac6e510 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,8 @@ random values of varying types, with uniform distribution. See below for usage a ```text -Radical Random Value Generator 1.61 +Radical Random Value Generator 1.6180 + Generates arbitrary numbers of uniformly distributed random values. USAGE: @@ -25,61 +26,47 @@ FLAGS: OPTIONS: -n, --num-vals Number of random values to print out. Defaults to 1. - -t, --type Type of random value to print. Defaults to 'bool', with true represented as 'Radical!', - and false as 'Bogus.'. - Possible values are 'b'ool, 'f'loat64, 'u'nsigned64, and 's'igned64 + -t, --type Type of random value to print. Defaults to 'bool'. + Possible values are 'b'ool, 'f'loat64, 'U'UIDv4, 'u'nsigned64, and 's'igned64 ``` Some examples: ``` text -$ randical -n 10 # print out ten bools +$ randical -n 5 # print out five bools Bogus. Radical! Radical! Bogus. Radical! -Bogus. -Radical! -Bogus. -Radical! -Radical! -$ randical -t u -n 10 # print out ten 64-bit unsigned integers +$ randical -t u -n 5 # print out five 64-bit unsigned integers 5787939472744910229 3687549088276320089 5895623703396652260 1132852924593482146 15071579321211626745 -17449511910217057014 -15100162199599245434 -16771457972349018485 -7609614558571403402 -8284410620633392032 -$ randical -n 10 -t s # print out ten 64-bit signed integers +$ randical -n 5 -t s # print out five 64-bit signed integers -3655402238002064604 7349054970592683859 -4119878930309679607 3670604787450187343 7596830659839314972 --3642333771475302770 -2921931257318542851 --4580256882393100929 -3009966650832330749 -6676004827997477043 -$ randical -n 10 -t f # print out ten 64-bit floating-point numbers in [0,1) +$ randical -n 5 -t f # print out five 64-bit floating-point numbers in [0,1) 0.603028217883161 0.004087838255832366 0.07830762695977944 0.8930433328568959 0.6985875655193886 -0.8088176723597311 -0.747504385125212 -0.4487145473864015 -0.3171660044903156 -0.29296569910381276 + +$ randical -n 5 -t U # print out five v4 UUIDs +0237bf92-a629-440a-a1b5-ae32741b8ebd +a88a5c2a-88c5-4b48-849b-656831eb7fc5 +56ac8f8c-4e67-4418-bf0c-84a5442804c4 +c82162d6-80e5-4d3e-819b-b350dba74d5e +d8194b0b-246f-4c0a-8897-cb9cdee27a99 $ randical -e # exit with status 0 or 1, with equal probability $ echo $? diff --git a/VERSION b/VERSION index 2dab55d..d0873b8 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.618 +1.6180