dos_compilers/Microsoft QuickBASIC v3/manual/ng2ba71.html
2024-07-01 13:00:14 -07:00

41 lines
1.3 KiB
HTML

<HTML>
<HEAD><TITLE>QuickBASIC 3.0 - Long Entry</TITLE></HEAD>
<BODY>
<A HREF="ng2b8f2.html">[&lt;&lt;Previous Entry]</A>
<A HREF="ng320.html">[^^Up^^]</A>
<A HREF="ng2bce4.html">[Next Entry&gt;&gt;]</A>
<A HREF="menu.html" >[Menu]</A>
<A HREF="info.html">[About The Guide]</A>
<HR>
<PRE>
<B>RND Random Number</B>
<U>y</U> = <B>RND</B>[(<U>n</U>)]
Generates a single-precision random number in the range of 0 to 1.
<U>n</U> A numeric expression.
----------------------------------------------------------------------
<B>Notes:</B> If <U>n</U> is omitted or is positive, RND returns the next
random number in the current sequence.
If <U>n</U> is 0, RND returns the last (most recent) random
number in the current sequence.
If <U>n</U> is negative, BASIC uses <U>n</U> to reseed the random number
function. The first number in the reseeded random number
series is returned.
</PRE>
<HR>
<B>See Also:</B>
<A HREF="ng2a131.html">RANDOMIZE</A>
<HR>
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by <A HREF="http://www.acemake.com/hagbard">Dave Pearson</A>
<HR>
</BODY>
</HTML>