A Discrete-Event Network Simulator
API
sample-rng-plot.py File Reference

Demonstrate use of ns-3 as a random number generator integrated with plotting tools. More...

Go to the source code of this file.

Namespaces

 sample-rng-plot
 

Variables

tuple sample-rng-plot.rng = ns.core.NormalRandomVariable()
 
list sample-rng-plot.x = [rng.GetValue() for t in range(10000)]
 

Detailed Description

Demonstrate use of ns-3 as a random number generator integrated with plotting tools.

This is adapted from Gustavo Carneiro's ns-3 tutorial

Definition in file sample-rng-plot.py.