📄 node258.html
字号:
<html><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><!--Converted with jLaTeX2HTML 2002 (1.62) JA patch-1.4patched version by: Kenshi Muto, Debian Project.LaTeX2HTML 2002 (1.62),original version by: Nikos Drakos, CBLU, University of Leeds* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan* with significant contributions from: Jens Lippmann, Marek Rouchal, Martin Wilck and others --><HTML><HEAD><TITLE>22.1.3.2 Example</TITLE><META NAME="description" CONTENT="22.1.3.2 Example"><META NAME="keywords" CONTENT="everything"><META NAME="resource-type" CONTENT="document"><META NAME="distribution" CONTENT="global"><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"><META NAME="Generator" CONTENT="jLaTeX2HTML v2002 JA patch-1.4"><META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css"><LINK REL="STYLESHEET" HREF="everything.css" tppabs="http://www.isi.edu/nsnam/ns/doc/everything.css"><LINK REL="next" HREF="node259.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node259.html"><LINK REL="previous" HREF="node257.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node257.html"><LINK REL="up" HREF="node256.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node256.html"><LINK REL="next" HREF="node259.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node259.html"></HEAD><BODY ><!--Navigation Panel--><A NAME="tex2html5268" HREF="node259.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node259.html"><IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="file:/usr/share/latex2html/icons/next.png"></A> <A NAME="tex2html5262" HREF="node256.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node256.html"><IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="file:/usr/share/latex2html/icons/up.png"></A> <A NAME="tex2html5256" HREF="node257.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node257.html"><IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="file:/usr/share/latex2html/icons/prev.png"></A> <A NAME="tex2html5264" HREF="node1.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node1.html"><IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="file:/usr/share/latex2html/icons/contents.png"></A> <A NAME="tex2html5266" HREF="node590.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node590.html"><IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="file:/usr/share/latex2html/icons/index.png"></A> <BR><B> Next:</B> <A NAME="tex2html5269" HREF="node259.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node259.html">22.1.3.3 Output</A><B> Up:</B> <A NAME="tex2html5263" HREF="node256.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node256.html">22.1.3 C++ Support</A><B> Previous:</B> <A NAME="tex2html5257" HREF="node257.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node257.html">22.1.3.1 Member Functions</A>   <B> <A NAME="tex2html5265" HREF="node1.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node1.html">Contents</A></B>   <B> <A NAME="tex2html5267" HREF="node590.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node590.html">Index</A></B> <BR><BR><!--End of Navigation Panel--><H3><A NAME="SECTION04213200000000000000">22.1.3.2 Example</A></H3><P><PRE> /* create new RNGs */ RNG arrival (23456); RNG size; /* set the RNGs to the appropriate substream */ for (int i = 1; i < 3; i++) { arrival.reset_next_substream(); size.reset_next_substream(); } /* print the first 5 arrival times and sizes */ for (int j = 0; j < 5; j++) { printf ("%-8.3f %-4d\n", arrival.lognormal(5, 0.1), int(size.normal(500, 10))); }</PRE><P><BR><HR><ADDRESS>2003-09-23</ADDRESS></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -