The "rand()" functions built into many compilers are notoriously bad.
If the quality of the random series doesn't matter much, it might be
ok. If you are doing any kind of simulation, use Mersenne Twister.
Don

On Sep 19, 10:48 am, abhinav gupta <abhinav....@gmail.com> wrote:
> for that u have rand() function in c programming just go through it
>
> On Mon, Sep 19, 2011 at 8:42 PM, prasanth n <nprasnt...@gmail.com> wrote:
> > @don:
> > suppose if give like random(5)-> it must give any number between 0 and 5..
>
> > On Mon, Sep 19, 2011 at 8:22 PM, Don <dondod...@gmail.com> wrote:
>
> >> You mean a pseudo-random generator.
> >> Without special hardware you won't get a real random generator.
> >> Use Mersenne Twister.
>
> >> Don
>
> >> On Sep 19, 9:43 am, prasanth n <nprasnt...@gmail.com> wrote:
> >> > anyone give an algorithm of how to generate a random number..probability
> >> of
> >> > occurrence of each no should be the same..
>
> >> > --
> >> > *prasanth*
>
> >> --
> >> You received this message because you are subscribed to the Google Groups
> >> "Algorithm Geeks" group.
> >> To post to this group, send email to algogeeks@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >> algogeeks+unsubscr...@googlegroups.com.
> >> For more options, visit this group at
> >>http://groups.google.com/group/algogeeks?hl=en.
>
> > --
> > *prasanth*
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Algorithm Geeks" group.
> > To post to this group, send email to algogeeks@googlegroups.com.
> > To unsubscribe from this group, send email to
> > algogeeks+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/algogeeks?hl=en.

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

Reply via email to