#include <random-stream.h>
Public Member Functions | |
RealRandomStream () | |
virtual int64_t | AssignStreams (int64_t stream) |
virtual uint32_t | GetNext (uint32_t min, uint32_t max) |
![]() | |
virtual | ~RandomStream () |
Private Attributes | |
Ptr< UniformRandomVariable > | m_stream |
Provides uniform random variables. More... | |
Definition at line 50 of file random-stream.h.
ns3::RealRandomStream::RealRandomStream | ( | ) |
Definition at line 32 of file random-stream.cc.
References m_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.
stream | first stream index to use |
Implements ns3::RandomStream.
Definition at line 44 of file random-stream.cc.
References m_stream, and ns3::RandomVariableStream::SetStream().
|
virtual |
Implements ns3::RandomStream.
Definition at line 38 of file random-stream.cc.
References ns3::UniformRandomVariable::GetInteger(), and m_stream.
|
private |
Provides uniform random variables.
Definition at line 68 of file random-stream.h.
Referenced by AssignStreams(), GetNext(), and RealRandomStream().