1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00
node-red-nodes/function/random/locales/en-US/random.html

17 lines
853 B
HTML
Raw Normal View History

<script type="text/html" data-help-name="random">
<p>Generates a random number between a low and high value. Defaults to 1 to 10.</p>
2020-12-13 18:38:17 +01:00
<p>If left blank <code>from</code> and <code>to</code> can be set dynamically as below.</p>
<h3>Inputs</h3>
<dl class="message-properties">
<dt>from <span class="property-type">number</span></dt>
<dd>containing the low value to be used.</dd>
<dt>to <span class="property-type">number</span></dt>
<dd>containing the high value to be used.</dd>
</dl>
<h3>Details</h3>
<p>If set to return an integer it can <i>include</i> both the low and high values.
2020-12-13 18:38:17 +01:00
<code>min <= n <= max</code></p>
<p>If set to return a floating point value it will be from the low value, up to, but
2020-12-13 18:38:17 +01:00
not including the high value. <code>min <= n < max</code></p>
</script>