rng question

88 views
Skip to first unread message

steve curren

unread,
Feb 10, 2011, 12:03:36 AM2/10/11
to omnetpp
Hello folks,

I am using uniform(a,b,int rng=0) function, I tried uniform(0,1,4) and
uniform (0,1,10). I know they generate value between 0 and 1, but
could someone explains the difference between 4 and 10?

Thanks in advance!

Alfonso Ariza Quintana

unread,
Feb 10, 2011, 5:57:09 AM2/10/11
to omn...@googlegroups.com
See the manual section 6.4
the last number identify the random generator

-----Mensaje original-----
From: steve curren
Sent: Thursday, February 10, 2011 6:03 AM
To: omnetpp
Subject: [Omnetpp-l] rng question

Hello folks,

Thanks in advance!

--
You received this message because you are subscribed to the Google Groups
"omnetpp" group.
To post to this group, send email to omn...@googlegroups.com.
To unsubscribe from this group, send email to
omnetpp+u...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/omnetpp?hl=en.

emma omnet

unread,
Feb 13, 2011, 6:35:32 PM2/13/11
to omn...@googlegroups.com
Hello Alfonso,
 
Thanks for the reply! I read the manual, as they are using the same random generator algorithm.
 
so here, rng is the seed number. Please correct me if my understanding is wrong.


 
2011/2/10 Alfonso Ariza Quintana <aari...@hotmail.com>

Alfonso Ariza Quintana

unread,
Feb 14, 2011, 4:20:21 AM2/14/11
to omn...@googlegroups.com

the rng is a number that identify the random generator. You can have several independent random generators, for example you need a source that could generate the same random sequence with independent of the mac layer that you use (for example you are using sometimes PPP and sometimes ethernet). You can use a different (and independent) random generator that the other code uses

 
From: emma omnet
Sent: Monday, February 14, 2011 12:35 AM
Subject: Re: [Omnetpp-l] rng question
 
Hello Alfonso,
 
Thanks for the reply! I read the manual, as they are using the same random generator algorithm.
 
so here, rng is the seed number. Please correct me if my understanding is wrong.


 
2011/2/10 Alfonso Ariza Quintana <aari...@hotmail.com>
See the manual section 6.4
the last number identify the random generator

-----Mensaje original----- From: steve curren
Sent: Thursday, February 10, 2011 6:03 AM
To: omnetpp
Subject: [Omnetpp-l] rng question

Hello folks,

I am using uniform(a,b,int rng=0) function, I tried uniform(0,1,4) and
uniform (0,1,10). I know they generate value between 0 and 1, but
could someone explains the difference between 4 and 10?

Thanks in advance!

--
You received this message because you are subscribed to the Google Groups "omnetpp" group.
To post to this group, send email to omn...@googlegroups.com.
To unsubscribe from this group, send email to mailto:omnetpp%2Bunsu...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/omnetpp?hl=en.

--
You received this message because you are subscribed to the Google Groups "omnetpp" group.
To post to this group, send email to omn...@googlegroups.com.
To unsubscribe from this group, send email to mailto:omnetpp%2Bunsu...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/omnetpp?hl=en.

Reply all
Reply to author
Forward
0 new messages