File: random.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 (31 lines) | stat: -rw-r--r-- 958 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
<HTML>
<HEAD>
<TITLE>Random values</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">

<P><font size="+3" color="green"><B>Random values</B></font></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%" valign="top"><CODE>
GENERATE\RANDOM x min max npts</CODE>
</TD></TR>
</TABLE>
<P>
 If the <CODE>\RANDOM</CODE> qualifier is used, <CODE>x</CODE> will be filled with
 <CODE>npts</CODE> random numbers that fall between <CODE>min</CODE> and <CODE>max</CODE>.</p>
<p>
 No increment should be given.</p>
<p>
 For example, after the command:</p>
<p>
 <CODE><font color="blue">GENERATE\RANDOM X 1 2 5</font></CODE></p>
<p>
 the vector <code>X</code> will be <CODE>[1.198525; 1.897874; 1.238289; 1.367985; 1.381705]</CODE></p>
<P>
 <a href="incmax.htm"><img src="../shadow_left.gif">&nbsp;
 <font size="+1" color="olive">Increment and maximum</font></a></P>
</BODY>
</HTML>