2020-06-17 10:02:47 +02:00
|
|
|
<script type="text/html" data-help-name="random">
|
2020-12-13 13:58:13 +01:00
|
|
|
<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>
|
2020-06-17 10:02:47 +02:00
|
|
|
<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>
|
2020-06-17 10:02:47 +02:00
|
|
|
<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>
|
2020-06-17 10:02:47 +02:00
|
|
|
</script>
|