Hi Have random number generation in my program.
If the program is run with the same rng and same replica number and no
parameters are changed
then if I run it once then a second time the exact same sequence of
random numbers ocurr
the random numbers are having an intended impact on packet delivery
If I changed a section of the code, but that change does not change the
sequence through the program
or the order of any calls to the rng and the change is logically
equivelant then I would expect the
same random number order and the same results.
Is that right or does the act of actually just changing and rebuilding
the program have any impact in and
of that action itself on the random numbers generated?
If it should not have an impact in and of itself, then I will assume
something of the logic of my changed code
is unintendedly changing the order of the calls to the random number
sequence and therefore I will investigate
this code change since it is intended to be logically equivelant and the
observation suggests that it is not.
You can change the initial seed, if the initial seed is different the sequence will be different.
If you set in the ini file repetitions
repeat = 5
The simulator will send every one of the repetitions with a different initial seed for the random number generator, this is in the manual.
--
You received this message because you are subscribed to the Google Groups "OMNeT++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
omnetpp+u...@googlegroups.com.
Visit this group at https://groups.google.com/group/omnetpp.
For more options, visit https://groups.google.com/d/optout.
[General]
network = Wireless
record-eventlog = true
sim-time-limit = 500s
tkenv-plugin-path = ../../../etc/plugins
**.constraintAreaMinX = 0m
**.constraintAreaMinY = 0m
**.constraintAreaMinZ = 0m
**.constraintAreaMaxX = 800m
**.constraintAreaMaxY = 600m
**.constraintAreaMaxZ = 0m
# mobility
**.wirelessHost[*].mobilityType = "MassMobility"
**.wirelessHost[*].mobility.initFromDisplayString = false
**.wirelessHost[*].mobility.changeInterval = truncnormal(2s, 0.5s)
**.wirelessHost[*].mobility.changeAngleBy = normal(0deg, 30deg)
**.wirelessHost[*].mobility.speed = truncnormal(20mps, 8mps)
**.wirelessHost[*].mobility.updateInterval = 10ms
**.addDefaultRoutes = false
**.*Host*.numUdpApps = 1
**.*Host*.udpApp[*].packetLen = 100B
**.wiredHost1.udpApp[*].typename = "UDPMasterSvr"
**.wiredHost1.udpApp[*].localPort = 1000
**.wiredHost1.udpApp[*].contentSize = 1200B
**.wiredHost1.udpApp[*].sendInterval = 0.2s
**.wiredHostS1.udpApp[*].typename = "UDPMasterSvrS1"
**.wiredHostS2.udpApp[*].typename = "UDPMasterSvrS2"
**.wiredHostS3.udpApp[*].typename = "UDPMasterSvrS3"
**.wiredHostS*.udpApp[*].localPort = 1000
**.wiredHostS*.udpApp[*].contentSize = 1200B
**.wiredHostS*.udpApp[*].sendInterval = 0.2s
**.wirelessHost[*].udpApp[*].typename = "UDPMasterCli"
**.wirelessHost[*].udpApp[*].startTime = default[Config WithSimilarity]
**.wirelessHost[*].udpApp[*].withSimilarity = true
repeat = 10
[Config withHierarchy]
extends = withSimilarity
**.wiredHostS*.udpApp[*].withHierarchy = true
repeat = 10
If you include in the ini file reapeat = 10
You will have active the Run number

Every one has a different initial seed