A Discrete-Event Network Simulator
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ns3::RandomStream Class Referenceabstract

#include <random-stream.h>

+ Inheritance diagram for ns3::RandomStream:

Public Member Functions

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

Detailed Description

A simple wrapper around RngStream to make testing of the code easier.

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

Member Function Documentation

virtual int64_t ns3::RandomStream::AssignStreams ( int64_t  stream)
pure 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.

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

Implemented in ns3::TestRandomStream, and ns3::RealRandomStream.

Referenced by ns3::DcaTxop::AssignStreams().

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