Mailing list archive (omnetpp-l at omnetpp.org)
[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[omnetpp] Random node placements
Hi all,
I am using the Mobility Framework and want to place hosts on a line (mobility.y=100) with a randomly chosen mobility.x.
Setting mobility.x to '-1' while leaving mobility.y at 100 does not result in the intended variation only on the x-axis, but hosts are scattered all over the playground, as if both x and y are -1. Is this a bug or a feature?
Is there an easy way to do this (using the omnetpp RNGs)? Currently my hosts are evenly-spaced (by a shell script setting mobility.x = previous mobility.x + <some-space-inbetween>. An easy way would be to set the mobility.x with random variables from /dev/random, but that would result in non-reproducible host positions.
Any hints? Thanks!
Greets,
Martijn van Eenennaam
_______________________________________________
OMNeT++ Mailing List
options: http://lists.omnetpp.org/mailman/listinfo/omnetpp-l
archive: http://www.omnetpp.org/listarchive/index.php
Home |
Main Index |
Thread Index