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 <[email protected]> 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 <[email protected]> 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 <[email protected]> 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 <[email protected]> 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 [email protected]. > >> To unsubscribe from this group, send email to > >> [email protected]. > >> 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 [email protected]. > > To unsubscribe from this group, send email to > > [email protected]. > > 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
