[ndnSIM] Same script, Same Random Seed, Different Machines, Get Different Simulation Result

Xiaoke Jiang shock.jiang at gmail.com
Tue Jul 2 09:10:02 PDT 2013


Yes, I mean RngRun parameter.


    UniformVariable rng = UniformVariable();  
    SeedManager::SetSeed (seed);

    int j = rng.GetInteger(0, gwN-1); //[0, totnodes-1]


Only random number here.


thanks

My Regards,
Xiaoke (Shock) Jiang (蒋小可)

Ph.D. Candidate,
Department of Computer Science and Technology,
Tsinghua University, Beijing, P.R.China. 100084




On Tuesday, July 2, 2013 at 11:16 PM, Alex Afanasyev wrote:

> Technically, you should be getting the same sequence of random values in NS-3... Just a couple of questions, by "same random seed" do you mean RngRun parameter?  Do you use only NS-3 provided random variables or rely also on system's rand (system's rand may give different results on different platforms)?
>  
> ---
> Alex
>  
> On Jul 1, 2013, at 10:02 PM, Xiaoke Jiang <shock.jiang at gmail.com (mailto:shock.jiang at gmail.com)> wrote:
> > The server is ubuntu with AMD CPU. But I set the same seed in the script.
> >  
> > thanks
> >  
> > My Regards,
> > Xiaoke (Shock) Jiang (蒋小可)
> >  
> > Ph.D. Candidate,
> > Department of Computer Science and Technology,
> > Tsinghua University, Beijing, P.R.China. 100084
> >  
> >  
> >  
> >  
> > On Tuesday, July 2, 2013 at 12:59 PM, Cesar Ghali wrote:
> >  
> > > More details would be helpful, but I think it can be normal especially if powerful server has a different platform than the Mac OS. The random numbers generators could be implemented differently on both platforms.
> > >  
> > > Cesar
> > >  
> > >  
> > > On Jul 1, 2013, at 9:50 PM, Xiaoke Jiang <shock.jiang at gmail.com (mailto:shock.jiang at gmail.com)> wrote:
> > > > Dear All,
> > > > I have written a script and set the same random seed. But I run the script on different machine, one is mac os air, the other is a powerful server. And I get different results, Is it normal?
> > > >  
> > > > thanks
> > > >  
> > > > My Regards,
> > > > Xiaoke (Shock) Jiang (蒋小可)
> > > >  
> > > > Ph.D. Candidate,
> > > > Department of Computer Science and Technology,
> > > > Tsinghua University, Beijing, P.R.China. 100084
> > > >  
> > > >  
> > > >  
> > > > _______________________________________________
> > > > ndnSIM mailing list
> > > > ndnSIM at lists.cs.ucla.edu (mailto:ndnSIM at lists.cs.ucla.edu)
> > > > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
> > >  
> > > _______________________________________________
> > > ndnSIM mailing list
> > > ndnSIM at lists.cs.ucla.edu (mailto:ndnSIM at lists.cs.ucla.edu)
> > > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
> > >  
> > >  
> >  
> >  
> > _______________________________________________
> > ndnSIM mailing list
> > ndnSIM at lists.cs.ucla.edu (mailto:ndnSIM at lists.cs.ucla.edu)
> > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
>  

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20130703/3f0bf066/attachment.html>


More information about the ndnSIM mailing list