A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ns3::RealRandomStream Class Reference
+ Inheritance diagram for ns3::RealRandomStream:

Public Member Functions

virtual int64_t AssignStreams (int64_t stream)
 
virtual uint32_t GetNext (uint32_t min, uint32_t max)
 

Private Attributes

Ptr< UniformRandomVariablem_stream
 Provides uniform random variables.
 

Detailed Description

Definition at line 50 of file random-stream.h.

Member Function Documentation

int64_t ns3::RealRandomStream::AssignStreams ( int64_t  stream)
virtual

Assign a fixed random variable stream number to the random variables used by this model. Return the number of streams (possibly zero) that have been assigned.

Parameters
streamfirst stream index to use
Returns
the number of stream indices assigned by this model

Implements ns3::RandomStream.

Definition at line 44 of file random-stream.cc.

References m_stream, and ns3::RandomVariableStream::SetStream().


The documentation for this class was generated from the following files: