diff --git a/function/random/LICENSE b/function/random/LICENSE index f5b60114..f144b137 100644 --- a/function/random/LICENSE +++ b/function/random/LICENSE @@ -1,4 +1,4 @@ -Copyright 2016 JS Foundation and other contributors, https://js.foundation/ +Copyright 2016,2020 JS Foundation and other contributors, https://js.foundation/ Copyright 2013-2016 IBM Corp. Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/function/random/README.md b/function/random/README.md index cb22f2b5..0713d08a 100644 --- a/function/random/README.md +++ b/function/random/README.md @@ -1,18 +1,15 @@ -node-red-node-random -==================== +# node-red-node-random A Node-RED node that when triggered generates a random number between two values. -Install -------- +## Install Either use the Manage Palette option in the Node-RED Editor menu, or run the following command in your Node-RED user directory - typically `~/.node-red` npm i node-red-node-random -Usage ------ +## Usage A simple node to generate a random number when triggered. @@ -20,6 +17,6 @@ If set to return an integer it can include both the low and high values. `min <= n <= max` - so selecting 1 to 6 will return values 1,2,3,4,5 or 6. If set to return a floating point value it will be from the low value, up to, but -not including the high value. `min <= n < max` - so selecting 1 to 6 will return values 1 <= n < 6 . +**not** including the high value. `min <= n < max` - so selecting 1 to 6 will return values 1 <= n < 6 . **Note:** This returns numbers - objects of type **number**. diff --git a/function/random/package.json b/function/random/package.json index 6e33498c..43965ece 100644 --- a/function/random/package.json +++ b/function/random/package.json @@ -1,6 +1,6 @@ { "name" : "node-red-node-random", - "version" : "0.1.4", + "version" : "0.2.0", "description" : "A Node-RED node that when triggered generates a random number between two values.", "dependencies" : { },