mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
Re-lint a load of nodes
This commit is contained in:
@@ -10,7 +10,8 @@ module.exports = function(RED) {
|
||||
this.on("input", function(msg) {
|
||||
if (node.inte == "true" || node.inte === true) {
|
||||
msg.payload = Math.round(Number(Math.random()) * (node.high - node.low + 1) + node.low - 0.5);
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
msg.payload = Number(Math.random()) * (node.high - node.low) + node.low;
|
||||
}
|
||||
node.send(msg);
|
||||
|
Reference in New Issue
Block a user