<p class="Paragraph">Expression: Any numeric expression that defines how random numbers will be generated.</p>
<p class="Paragraph">Less than zero: Always returns the same random number.</p>
<p class="Paragraph">Greater than zero: Returns the next random number in the sequence.</p>
<p class="Paragraph">Zero: Returns the random number last generated.</p>
<p class="Paragraph">Omitted: Returns the next random number in the sequence.</p>
<p class="Paragraph">If the same number is passed for each successive call to the Rnd function, the same random-number sequence is generated, because the Expression parameter is used as a starting point for the next number.</p>
<p class="Paragraph">The <span class="T1">Rnd</span> function only returns values ranging from 0 to 1. To generate random integers in a given range, use the formula in the following example:</p>