Thread: random isn't really random?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #11
    Registered User
    Join Date
    May 2008
    Posts
    81
    Quote Originally Posted by Daved View Post
    You say seeding srand with MT.out and then calling rand is MAYBE better than just using MT.out. But you haven't proven that it is not worse either.

    I actually don't know the internals of pseudo-random number generators myself, but logic tells me that using them the way they were intended to be used is most likely the best choice, especially when others more knowledgeable on the subject than I are saying the same thing.

    Your logic is that it might be better because it might make the output more random. I'm still curious as to what exactly you mean by that.
    to be fair, i have no solid reasons for believing that a coupling of PRNGs will yield better results. its just a half-hearted assumption that prng * prng = better prng.

    i also agree that I haven't proven that multiple seeding of srand() with MT.out is not worse. it just worked well for me, thats all.

    what i was intrigued about was why there are seemingly vehement claims that multiple srand() calls would be detrimental. iMalc pointed out a possible reason and Salem gave an example for the same, but that applies for an implementation slightly different than mine (please see my last post).

    EDIT: i am aware that you had previously questioned what i meant by the phrase "more random". i had addressed that here.
    Last edited by shawnt; 06-09-2008 at 03:58 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. random to int?
    By psyadam in forum C# Programming
    Replies: 7
    Last Post: 07-22-2008, 08:09 PM
  2. Lesson #3 - Math
    By oval in forum C# Programming
    Replies: 2
    Last Post: 04-27-2006, 08:16 AM
  3. Another brain block... Random Numbers
    By DanFraser in forum C# Programming
    Replies: 2
    Last Post: 01-23-2005, 05:51 PM
  4. How do I restart a random number sequence.
    By jeffski in forum C Programming
    Replies: 6
    Last Post: 05-29-2003, 02:40 PM
  5. Best way to generate a random double?
    By The V. in forum C Programming
    Replies: 3
    Last Post: 10-16-2001, 04:11 PM