1.1 Quick Overview
ns-3 random numbers are provided via instances of class RandomVariable
.
- by default, ns-3 simulations use a random seed; if there is any
randomness in the simulation, each run of the program will yield different results. To use a fixed seed, users must call
RandomVariable::UseGlobalSeed ()
at the beginning of the program;
see section See section Seeding and independent replications
- each RandomVariable used in ns-3 has a virtual random number
generator associated with it; all random variables use either a fixed
or random seed based on the use of the global seed (previous bullet);
- if you intend to perform multiple runs of the same scenario, with
different random numbers, please be sure to read the section on how to
perform independent replications: See section Seeding and independent replications.
Read further for more explanation about the random number facility for
ns-3.
This document was generated on September, 23 2008 using texi2html 1.76.