?? funcref-130.html
字號:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><HTML><HEAD> <META NAME="GENERATOR" CONTENT="LinuxDoc-Tools 0.9.20"> <TITLE>cc65 function reference: Alphabetical function reference: rand</TITLE> <LINK HREF="funcref-131.html" REL=next> <LINK HREF="funcref-129.html" REL=previous> <LINK HREF="funcref.html#toc3" REL=contents></HEAD><BODY><A HREF="funcref-131.html">Next</A><A HREF="funcref-129.html">Previous</A><A HREF="funcref.html#toc3">Contents</A><HR><H2><A NAME="rand"></A> 3.89 <A HREF="funcref.html#toc3.89">rand</A></H2><P><BLOCKQUOTE><DL><DT><B>Function</B><DD><P>Return a pseudo random number.</P><DT><B>Header</B><DD><P><CODE><A HREF="funcref-34.html#stdlib.h">stdlib.h</A></CODE></P><DT><B>Declaration</B><DD><P><CODE>int rand (void);</CODE></P><DT><B>Description</B><DD><P>The function returns a pseudo random numberbetween 0 and <CODE>RAND_MAX</CODE> (exclusive).</P><DT><B>Limits</B><DD><P><UL><LI>Without using <CODE><A HREF="funcref-141.html#srand">srand</A></CODE>, always the sameflow of numbers is generated.</LI><LI>On startup, the function behaves as if <A HREF="funcref-141.html#srand">srand</A>had been used with an argument of 1.</LI></UL></P><DT><B>Availability</B><DD><P>ISO 9899</P><DT><B>See also</B><DD><P><A HREF="funcref-46.html#_randomize">_randomize</A>,<A HREF="funcref-141.html#srand">srand</A></P><DT><B>Example</B><DD><P>None.</P></DL></BLOCKQUOTE></P><HR><A HREF="funcref-131.html">Next</A><A HREF="funcref-129.html">Previous</A><A HREF="funcref.html#toc3">Contents</A></BODY></HTML>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -