File: ran.htm

package info (click to toggle)
extrema 4.3.6-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 19,212 kB
  • ctags: 6,452
  • sloc: cpp: 86,428; sh: 8,229; makefile: 814
file content (34 lines) | stat: -rw-r--r-- 1,397 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<HTML>
<HEAD>
<TITLE>RAN</TITLE>
</HEAD>
<BODY bgcolor="#FFFFFF" fgcolor="#000000">

<P><A NAME="ran"></A>
<font size="+3" color="green"><B>RAN</B></font></P>
<P>
<TABLE border="1" cols="2" frame="box" rules="all" width="572">
<TR>
<TD width="15%" valign="top"><B>Syntax</B>:</TD>
<TD width="85%"><CODE>
vout = RAN( v )</CODE>
</TD></TR>
</table></p>
<p>
 The <CODE>RAN</CODE> function is an element by element function that
 requires one argument. The argument can be a scalar, vector or matrix. A scalar argument results
 in a scalar. A vector argument results in a vector with the same length as the argument, and a
 matrix (tensor) argument results in a matrix (tensor) with the same dimensions as the argument.
 <CODE>RAN</CODE> uses the current value of the seed to generate the
 next random number, <CODE>0 &lt; RAN(v) &lt; 1</CODE>.
 The initial value for the random number seed is <CODE>12345</CODE>. Every time a random number is
 requested, either from the <code><a href="../../GenerateCommand/generatecommand.htm">GENERATE/RANDOM</a>
 </CODE> command or from the <CODE>RAN</CODE> function, the seed is updated.</p>
<p>
 <a href="pdiff.htm"><img border="0" src="../../shadow_left.gif">&nbsp;
 <font size="+1" color="olive">PDIFF</font></a><br />
 <a href="sign.htm"><img border="0" src="../../shadow_right.gif">&nbsp;
 <font size="+1" color="olive">SIGN</font></a>
</P>
</BODY>
</HTML>