28 Commits

Author SHA1 Message Date
juggledad
48db5bb829
fixed code setting defaults, added floor() and ceil() if result to be integer
I also added a status showing the from and to. This will help people see what is actually being used. i.e you add a random node then attach an inject to send msg.from as 4, you would think the result would be between 4 and 10 but since you did not clear out the 'From' value in the node, the result is from 1 to 10
2020-12-02 06:30:41 -05:00
juggledad
78bb05cc04
Changed code to allow for default values to be used 2020-11-14 06:08:35 -05:00
juggledad
18c3aa737e
added default 'low' and 'high' values when adding the node to a flow 2020-11-14 06:06:04 -05:00
juggledad
b284f86520
Removed status msgs, added a tmp variable, kept parseInt to prevent rounding error when high value has a decimal value 2020-11-13 17:16:43 -05:00
juggledad
3cbbd1b21a
added validation to 'low' and 'high' to prevent anything but a number from being entered. 2020-11-12 16:04:49 -05:00
juggledad
e68d012bf2
added better validation of inputs, added node status 2020-11-12 08:03:23 -05:00
juggledad
85a74b2e78
Had to IF statements broken on two lines, changed it so it's all on one line 2020-10-26 16:49:01 -04:00
juggledad
056429a745
Added note about passing in msg.to and msg.from dynamicly 2020-10-26 04:11:15 -04:00
juggledad
572f1fab5d
added explaination for passing 'To' amd 'From' dynamically 2020-10-26 04:07:09 -04:00
juggledad
970afa760a
Set initial values of 'From' and 'To to "" to allow dynamic overiding them 2020-10-26 04:03:35 -04:00
juggledad
eaa1acf83a
Add option to dynamically pass in 'From' and 'To' - fixed bug when 'From' was greater than 'To' by flipping the two 2020-10-26 04:00:57 -04:00
Dave Conway-Jones
696a99eaa3
bump random node to pickup translations 2020-06-17 18:15:10 +01:00
Kazuhito Yokoi
7cec44d353
Add Japanese translations for random node (#658) 2020-06-17 09:02:47 +01:00
Dave Conway-Jones
e8a7af18d6
Tidy datagenerator, random and smaz nodes 2019-09-20 21:22:14 +01:00
Nick O'Leary
ff2801ca87
Remove rogue piece of text in random node html 2019-06-21 14:11:09 +01:00
Dave Conway-Jones
5dbeb23671
fix random readme 2018-09-24 20:03:23 +01:00
Dave Conway-Jones
d32f11910b
clarify random node info language 2018-09-24 19:40:33 +01:00
Dave Conway-Jones
be79b6a1c6
add msg.property option to rbe, randon, smooth and base64 nodes 2018-01-30 21:42:14 +00:00
Dave Conway-Jones
316a2fd272 Re-lint a load of nodes 2017-01-29 17:45:44 +00:00
Dave Conway-Jones
31cb3d1e46 fix random node initial value (and tests) 2016-12-27 21:25:57 +00:00
Dave Conway-Jones
a7247e898a Update licenses and packages for all nodes 2016-11-06 20:26:19 +00:00
Dave Conway-Jones
eff8327971 Info/Doc style updates to core/pi nodes 2016-03-02 13:27:52 +00:00
dceejay
76f55af264 Update Package.json file for all node-red-nodes to be Apache-2.0 2015-05-29 14:58:34 +01:00
dceejay
d060e0b301 remove snapchat node, update pusher node, grammer correct random node package.json 2015-04-24 21:17:02 +01:00
Nick O'Leary
e41893eccb Random node always returns floating point 2015-04-22 13:18:55 +01:00
dceejay
4dae7ece06 add ngeohash to package.json for tests... 2015-03-31 15:35:37 +01:00
dceejay
9b56b6f4c3 add some more tests (and fixes for resulting bugs :-) 2015-03-31 15:15:38 +01:00
Dave C-J
ecbde5d3d5 Add Random number generator node. 2014-10-27 20:26:49 +00:00