]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PYTHIA8/pythia8145/htmldoc/RandomNumberSeed.html
New pythia8 version
[u/mrichter/AliRoot.git] / PYTHIA8 / pythia8145 / htmldoc / RandomNumberSeed.html
CommitLineData
9419eeef 1<html>
2<head>
3<title>Random-Number Seed</title>
4<link rel="stylesheet" type="text/css" href="pythia.css"/>
5<link rel="shortcut icon" href="pythia32.gif"/>
6</head>
7<body>
8
9<h2>Random-Number Seed</h2>
10
11The seed of the random number generator can be set as follows:
12
13<p/><code>flag&nbsp; </code><strong> Random:setSeed &nbsp;</strong>
14 (<code>default = <strong>off</strong></code>)<br/>
15Indicates whether a user-set seed should be used every time the
16<code>Pythia::init</code> routine is called. If off, the random number
17generator is initialized with its default seed at the beginning
18of the run, and never again. If on, each new <code>Pythia::init</code>
19call (should several be made in the same run) results in the random
20number being re-initialized, thereby possibly starting over with the
21same sequence, if you do not watch out.
22
23
24<p/><code>mode&nbsp; </code><strong> Random:seed &nbsp;</strong>
25 (<code>default = <strong>-1</strong></code>; <code>maximum = 900000000</code>)<br/>
26The seed to be used, if <code>setSeed</code> is on.<br/>
27A negative value gives the default seed,<br/>
28a value 0 gives a random seed based on the time, and<br/>
29a value between 1 and 900,000,000 a unique different random number
30sequence.
31
32
33<p/>
34For more on random numbers see <a href="RandomNumbers.html" target="page">here</a>.
35This includes methods to save and restore the state of the generator,
36and some preprogrammed methods to generate non-uniform random numbers.
37
38</body>
39</html>
40
41<!-- Copyright (C) 2010 Torbjorn Sjostrand -->