[ns] random number generator

li xiang subxiang@hotmail.com
Thu Apr 4 07:40:01 2002


post it here. i try try...
if too complex, i would rather you take an OTcl tutorial..

best regards
li xiang

>From: bukhari <bukhari@usc.edu>
>To: li xiang <subxiang@hotmail.com>
>Subject: Re: [ns] random number generator
>Date: Wed, 3 Apr 2002 20:01:42 -0800 (PST)
>
>Hi, Thanks for your kind help. I am a newbie to NS, if you don't mind
>can i send you a scenario to help me code in NS ?
>
>Usman
>
>On Thu, 4 Apr 2002, li xiang wrote:
>
> > hello there,
> >
> >
> > $rng integer 1000
> >
> > haven't you seen any numbers followed by this command?
> >
> > set aNumber [$rng integer 1000]
> > will let aNumber become a variable with a random integer from 0 to 1000)
> >
> > yours
> > li xiang
> >
> > >From: bukhari <bukhari@usc.edu>
> > >To: <ns-users@ISI.EDU>
> > >Subject: [ns] random number generator
> > >Date: Wed, 3 Apr 2002 17:14:13 -0800 (PST)
> > >
> > >
> > >Hi,
> > >
> > >I am using RNG for generating random numbers, but don't know how to
> > >analyse the output generated by this function. How can I see the output
> > >nembers generated by this function ?
> > >
> > >Thanks,
> > >Usman
> > >
> > >set rng [new RNG]
> > >
> > >$rng integer 1000
> > >----------------------------------------
> > >
> >
> >
> >
> >
> > _________________________________________________________________
> > Chat with friends online, try MSN Messenger: http://messenger.msn.com
> >
>




_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.